Commit 462335fa authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: scsi ioctl error handling

From: Daniele Bellucci <bellucda@tiscali.it>
parent ab6e2e1d
......@@ -367,7 +367,7 @@ static int scsi_ioctl_get_pci(struct scsi_device *sdev, void *arg)
if (!dev)
return -ENXIO;
return copy_to_user(arg, dev->bus_id, sizeof(dev->bus_id));
return copy_to_user(arg, dev->bus_id, sizeof(dev->bus_id))? -EFAULT: 0;
}
......
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