imm: check parport_claim
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 24 Feb 2016 10:57:11 +0000 (16:27 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Feb 2016 02:10:53 +0000 (21:10 -0500)
commit9ffeca3e576b9f8b18071ca03f7562d198c2f68b
treed57c21f1b8442f3b79e4fe07c575b9864972821d
parent797150b98a34a27356195d5888c8eac0e2cc6b65
imm: check parport_claim

parport_claim() can fail and we should be checking if we were able to
claim the port.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Reviewed-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/imm.c