[PATCH] scsi_dh: Fix return value of scsi_dh_attach()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



scsi_dh_attach() should return a standard error number on error.

Reported-by: Richard Weinberger <richard@xxxxxx>
Signed-off-by: Hannes Reinecke <hare@xxxxxxx>

diff --git a/include/scsi/scsi_dh.h b/include/scsi/scsi_dh.h
index e3f2db2..dfc2334 100644
--- a/include/scsi/scsi_dh.h
+++ b/include/scsi/scsi_dh.h
@@ -74,7 +74,7 @@ static inline int scsi_dh_handler_exist(const char *name)
 }
 static inline int scsi_dh_attach(struct request_queue *req, const char *name)
 {
-	return SCSI_DH_NOSYS;
+	return -EINVAL;
 }
 static inline void scsi_dh_detach(struct request_queue *q)
 {
@@ -82,6 +82,6 @@ static inline void scsi_dh_detach(struct request_queue *q)
 }
 static inline int scsi_dh_set_params(struct request_queue *req, const char *params)
 {
-	return -SCSI_DH_NOSYS;
+	return -EINVAL;
 }
 #endif
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux