From d983ab3638006948c47cb1cc7a87459fc71728f0 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 1 Nov 2018 04:28:17 +0000 Subject: [PATCH] qla2x00t: Make qla2x00_store_class2_enabled() report failures git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7567 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla_attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qla2x00t/qla_attr.c b/qla2x00t/qla_attr.c index 46992567f..daede7884 100644 --- a/qla2x00t/qla_attr.c +++ b/qla2x00t/qla_attr.c @@ -92,7 +92,7 @@ qla2x00_store_class2_enabled(struct device *dev, set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); out: - return size; + return res; out_unlock: spin_unlock_irqrestore(&ha->hardware_lock, flags);