Commit 9ffeca3e authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Martin K. Petersen

imm: check parport_claim

parport_claim() can fail and we should be checking if we were able to
claim the port.
Signed-off-by: default avatarSudip Mukherjee <>
Reviewed-by: default avatarMatthew R. Ochs <>
Signed-off-by: default avatarMartin K. Petersen <>
parent 797150b9
......@@ -77,9 +77,10 @@ static void imm_wakeup(void *ref)
spin_lock_irqsave(&arbitration_lock, flags);
if (dev->wanted) {
dev->wanted = 0;
if (parport_claim(dev->dev) == 0) {
dev->wanted = 0;
spin_unlock_irqrestore(&arbitration_lock, flags);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment