patch-2.0.36 linux/drivers/block/loop.c

Next file: linux/drivers/block/md.c
Previous file: linux/drivers/block/ide.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.35/linux/drivers/block/loop.c linux/drivers/block/loop.c
@@ -365,7 +365,7 @@
 	case LO_CRYPT_NONE:
 		break;
 	case LO_CRYPT_XOR:
-		if (info.lo_encrypt_key_size < 0)
+		if (info.lo_encrypt_key_size <= 0)
 			return -EINVAL;
 		break;
 #ifdef DES_AVAILABLE

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov