All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ATA:libata-pmp: fix warn: missing error code
@ 2021-08-26 17:43 F.A.Sulaiman
  0 siblings, 0 replies; only message in thread
From: F.A.Sulaiman @ 2021-08-26 17:43 UTC (permalink / raw)
  To: axboe; +Cc: F.A.Sulaiman, linux-ide, linux-kernel

smatch reported 'sata_pmp_eh_recover() warn: missing error code 'rc''.
This patch resolve it by adding I/O error code to 'rc'.

Signed-off-by: F.A. SULAIMAN <asha.16@itfac.mrt.ac.lk>
---
 drivers/ata/libata-pmp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
index ba7be3f38617..2ea7b9986f4e 100644
--- a/drivers/ata/libata-pmp.c
+++ b/drivers/ata/libata-pmp.c
@@ -977,6 +977,7 @@ static int sata_pmp_eh_recover(struct ata_port *ap)
 			ata_link_warn(pmp_link,
 				"failed to disable NOTIFY (err_mask=0x%x)\n",
 				err_mask);
+			rc = -EIO;
 			goto pmp_fail;
 		}
 	}
-- 
2.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-26 17:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 17:43 [PATCH] ATA:libata-pmp: fix warn: missing error code F.A.Sulaiman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.