Browse Source

[SCSI] scsi: device_reprobe() can fail

device_reprobe() should return an error code.  When it does so,
scsi_device_reprobe() should propagate it back.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Andrew Morton 18 năm trước cách đây
mục cha
commit
8350a348e9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      include/scsi/scsi_device.h

+ 2 - 2
include/scsi/scsi_device.h

@@ -298,9 +298,9 @@ extern int scsi_execute_async(struct scsi_device *sdev,
 			      void (*done)(void *, char *, int, int),
 			      gfp_t gfp);
 
-static inline void scsi_device_reprobe(struct scsi_device *sdev)
+static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev)
 {
-	device_reprobe(&sdev->sdev_gendev);
+	return device_reprobe(&sdev->sdev_gendev);
 }
 
 static inline unsigned int sdev_channel(struct scsi_device *sdev)