[SCSI] libosd: fix potential ERR_PTR dereference in osd_initiator.c
authorDan Carpenter <error27@gmail.com>
Sun, 19 Apr 2009 16:07:47 +0000 (19:07 +0300)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 27 Apr 2009 16:05:31 +0000 (11:05 -0500)
commitbf5e84f69618f416e89a5a53434a8c865e70252e
tree589931c8a79c55f395fa25af94cbfc42c524de79
parent3b8b5c9b1f08660583e5dfe095c24170df62f1d2
[SCSI] libosd: fix potential ERR_PTR dereference in osd_initiator.c

bio_map_kern() returns an ERR_PTR() not NULL.

Found by smatch (http://repo.or.cz/w/smatch.git).  Compile tested.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/osd/osd_initiator.c