aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ncp_fs_sb.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2007-02-19 11:34:43 +0100
committerPierre Ossman <drzeus@drzeus.cx>2007-03-06 13:26:27 +0100
commitc5f93cf19df633a8dbd7adf8130d604eec96e145 (patch)
treee58a062b40b9ed1c9be9bcaac4302da98ae6082f /include/linux/ncp_fs_sb.h
parentc3442e296517aee733d62fc3fe03211598902c7d (diff)
downloadkernel_samsung_aries-c5f93cf19df633a8dbd7adf8130d604eec96e145.zip
kernel_samsung_aries-c5f93cf19df633a8dbd7adf8130d604eec96e145.tar.gz
kernel_samsung_aries-c5f93cf19df633a8dbd7adf8130d604eec96e145.tar.bz2
ncpfs: make sure server connection survives a kill
Use internal buffers instead of the ones supplied by the caller so that a caller can be interrupted without having to abort the entire ncp connection. Signed-off-by: Pierre Ossman <ossman@cendio.se> Acked-by: Petr Vandrovec <petr@vandrovec.name>
Diffstat (limited to 'include/linux/ncp_fs_sb.h')
-rw-r--r--include/linux/ncp_fs_sb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ncp_fs_sb.h b/include/linux/ncp_fs_sb.h
index a503052..6330fc7 100644
--- a/include/linux/ncp_fs_sb.h
+++ b/include/linux/ncp_fs_sb.h
@@ -50,6 +50,8 @@ struct ncp_server {
int packet_size;
unsigned char *packet; /* Here we prepare requests and
receive replies */
+ unsigned char *txbuf; /* Storage for current request */
+ unsigned char *rxbuf; /* Storage for reply to current request */
int lock; /* To prevent mismatch in protocols. */
struct mutex mutex;