commit | 3ae279d25954de47c704ca713a2711ac10fcd1ee | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Wed Feb 09 15:34:36 2011 -0800 |
committer | James Bottomley <James.Bottomley@suse.de> | Sat Feb 12 11:29:07 2011 -0600 |
tree | cb5b7976ad78d86c761a8e66e9c13cd718c03937 | |
parent | a361cc0025614fdd07f5f69aeeaa8075530870bc [diff] |
[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>