[PATCH 2.6] cciss: cciss_ioctl return code fix

From: mike . miller
Date: Mon Dec 06 2004 - 12:49:04 EST


This patches fixes the return code from cciss_ioctl. Without this some
block layer (BLK*) ioctls do not work. Please consider this for inclusion.

Thanks to Jens Axboe for pointing this out.

Signed-off-by: Mike Miller <mike.miller@xxxxxx>

cciss.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

--------------------------------------------------------------------------------
diff -urNp lx2610-rc3.orig/drivers/block/cciss.c lx2610-rc3/drivers/block/cciss.c
--- lx2610-rc3.orig/drivers/block/cciss.c 2004-12-06 09:36:04.844780000 -0600
+++ lx2610-rc3/drivers/block/cciss.c 2004-12-06 09:39:18.104400072 -0600
@@ -1100,7 +1100,7 @@ cleanup1:
return(status);
}
default:
- return -EBADRQC;
+ return -ENOTTY;
}

}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/