[SCSI] libiscsi: handle param allocation failures
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 13 May 2009 22:57:40 +0000 (17:57 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 23 May 2009 20:44:10 +0000 (15:44 -0500)
commit5700b1af93388544843a453e3c68f8f928bd1e88
tree6c0ea7141990b88b8147e7e35d1f7ed8ebb0baa5
parent184b57c630c86d35b7f92d4b6545fdf07647c5d5
[SCSI] libiscsi: handle param allocation failures

If we could not allocate the initiator name or some other id like
the hwaddress or netdev, then userspace could deal with the failure
by just running in a dregraded mode.

Now we want to be able to switch values for the params and we
want some feedback, so this patch will check if a string like
the initiatorname could not be allocated and return an error.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c