]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] target: iblock/pscsi claim checking for NULL instead of IS_ERR
authorDan Carpenter <error27@gmail.com>
Wed, 9 Feb 2011 23:34:36 +0000 (15:34 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Feb 2011 17:29:07 +0000 (11:29 -0600)
commit70a4a183b39fda707bcbb03f0a2f071e593ee81f
treecb5b7976ad78d86c761a8e66e9c13cd718c03937
parent8f540cf9e27a006f198afcb2a388e298766a2e87
[SCSI] target: iblock/pscsi claim checking for NULL instead of IS_ERR

blkdev_get_by_path() returns an ERR_PTR() or error and it doesn't return
a NULL.  It looks like this bug would be easy to trigger by mistake.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/target/target_core_iblock.c
drivers/target/target_core_pscsi.c