Commit cb5d9e0948122dd8b808550574d95bd60674ba3b
Committed by
Linus Torvalds
1 parent
cfae35804b
Exists in
master
and in
7 other branches
[PATCH] scsi: device_reprobe() can fail
device_reprobe() should return an error code. When it does so, scsi_device_reprobe() should propagate it back. Acked-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
include/scsi/scsi_device.h
... | ... | @@ -298,9 +298,9 @@ |
298 | 298 | void (*done)(void *, char *, int, int), |
299 | 299 | gfp_t gfp); |
300 | 300 | |
301 | -static inline void scsi_device_reprobe(struct scsi_device *sdev) | |
301 | +static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev) | |
302 | 302 | { |
303 | - device_reprobe(&sdev->sdev_gendev); | |
303 | + return device_reprobe(&sdev->sdev_gendev); | |
304 | 304 | } |
305 | 305 | |
306 | 306 | static inline unsigned int sdev_channel(struct scsi_device *sdev) |