hpsa: return -ENOMEM not -1 on kzalloc failure in hpsa_get_device_id
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 29 May 2014 15:54:20 +0000 (10:54 -0500)
committerChristoph Hellwig <hch@lst.de>
Mon, 2 Jun 2014 07:55:01 +0000 (09:55 +0200)
commita84d794d5c12a4c118bcdc4fecc2ca76ed02f643
tree3c78bb4366d77e7ae99d7841a77b097aa7aa196a
parent24a4b07879d6d750ef868b94cbdde510d63a1de9
hpsa: return -ENOMEM not -1 on kzalloc failure in hpsa_get_device_id

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Mike Miller <michael.miller@canonical.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.c