]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dpt_i2o: Fix typo of EINVAL
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Fri, 30 Oct 2009 08:02:31 +0000 (17:02 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 31 Oct 2009 19:11:38 +0000 (12:11 -0700)
Commit 0818080fcd880f187739eb9d503d31a4f5bb83fb ("dpt_i2o: Fix up
copy*user") had a silly typo: EINVAL should be -EINVAL.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: stable@kernel.org
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/dpt_i2o.c

index 7d1aac31ec8dcca36f70046966a9043f3d337f6e..496764349c4143ce5ac50c8bfd3fb1854144986c 100644 (file)
@@ -1919,7 +1919,7 @@ static int adpt_i2o_passthru(adpt_hba* pHba, u32 __user *arg)
                size = size>>16;
                size *= 4;
                if (size > MAX_MESSAGE_SIZE) {
-                       rcode = EINVAL;
+                       rcode = -EINVAL;
                        goto cleanup;
                }
                /* Copy in the user's I2O command */