[SCSI] pm8001: handle allocation failures
authorDan Carpenter <error27@gmail.com>
Tue, 17 Aug 2010 11:54:57 +0000 (13:54 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 9 Sep 2010 20:31:54 +0000 (15:31 -0500)
commit0caeb91c8d9ae6398bfe46ce70892e965353f613
tree16b4173f1d8d6202091cabfccbcd8e33c385a7f9
parente6d4ef450965af5a3753184d36ef9db7a3242950
[SCSI] pm8001: handle allocation failures

Return -ENOMEM if the allocations fail.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/pm8001/pm8001_hwi.c