Commit 21efc2e6 authored by James Bottomley's avatar James Bottomley

SCSI Fix oops with faulty DVD

There's a refcounting problem on the error leg of sr_open().
fix it.
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 999393cf
......@@ -544,7 +544,6 @@ static int sr_open(struct cdrom_device_info *cdi, int purpose)
return 0;
error_out:
scsi_cd_put(cd);
return retval;
}
......
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