Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb5d9e09 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[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: default avatarJeff Garzik <jeff@garzik.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent cfae3580
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)