Re: [PATCH 2.6] Check return value of copy_to_user in fs/cifs/file.c [Re: Linux 2.6.11-rc4]

2005-02-13 Thread Luca
Il Sun, Feb 13, 2005 at 06:28:38PM +0100, Marcel Sebek ha scritto: > > @@ -1164,13 +1164,22 @@ > > current_read_size, *poffset, > > &bytes_read, &smb_read_data); > > > > + if (rc == -EAGAIN) > > +

Re: [PATCH 2.6] Check return value of copy_to_user in fs/cifs/file.c [Re: Linux 2.6.11-rc4]

2005-02-13 Thread Marcel Sebek
On Sun, Feb 13, 2005 at 04:44:16PM +0100, Luca wrote: > Linus Torvalds <[EMAIL PROTECTED]> ha scritto: > > this is hopefully the last -rc kernel before the real 2.6.11, so please > > give it a whirl, and complain loudly about anything broken. > > The following patch against 2.6.11-rc4 fixes this

[PATCH 2.6] Check return value of copy_to_user in fs/cifs/file.c [Re: Linux 2.6.11-rc4]

2005-02-13 Thread Luca
Linus Torvalds <[EMAIL PROTECTED]> ha scritto: > this is hopefully the last -rc kernel before the real 2.6.11, so please > give it a whirl, and complain loudly about anything broken. The following patch against 2.6.11-rc4 fixes this compile time warning: CC [M] fs/cifs/file.o fs/cifs/file.c: I

[PATCH 2.6] Check return value of copy_to_user in fs/cifs/file.c

2005-02-03 Thread Luca
Hello, the following patch against 2.6.11-rc3 fixes this compile time warning: CC [M] fs/cifs/file.o fs/cifs/file.c: In function `cifs_user_read': fs/cifs/file.c:1168: warning: ignoring return value of `copy_to_user', declared with attribute warn_unused_result I also added an explicit check for