cciss: return -EFAULT if copy_from_user() fails
authorNikanth Karthikesan <knikanth@suse.de>
Mon, 4 Aug 2008 08:56:07 +0000 (10:56 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 6 Aug 2008 10:30:03 +0000 (12:30 +0200)
commitf7108f91cdcaca07c6a99777b2724093294f36ee
treed0d7b6ccb1bd6e60c5f48f1ea7c7c420d5a6079b
parent0967d61ea0d8e8a7826bd8949cd93dd1e829ac55
cciss: return -EFAULT if copy_from_user() fails

Return -EFAULT instead of -ENOMEM if copy_from_user() fails.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Acked-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss.c