[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <be482828-096c-889f-b916-1eb7ebe2368c@users.sourceforge.net>
Date: Sat, 21 Jan 2017 19:10:08 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-s390@...r.kernel.org,
Gerald Schäfer <gerald.schaefer@...ibm.com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
Sebastian Ott <sebott@...ux.vnet.ibm.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 1/5] s390/pci: Return directly after a failed parameter
validation in clp_normal_command()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 21 Jan 2017 17:49:00 +0100
Return directly after an inappropriate input parameter was detected.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
arch/s390/pci/pci_clp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/s390/pci/pci_clp.c b/arch/s390/pci/pci_clp.c
index 1c3332ac1957..4f5a1bf3b14b 100644
--- a/arch/s390/pci/pci_clp.c
+++ b/arch/s390/pci/pci_clp.c
@@ -514,9 +514,8 @@ static int clp_normal_command(struct clp_req *req)
void __user *uptr;
int rc;
- rc = -EINVAL;
if (req->lps != 0 && req->lps != 2)
- goto out;
+ return -EINVAL;
rc = -ENOMEM;
lpcb = clp_alloc_block(GFP_KERNEL);
--
2.11.0
Powered by blists - more mailing lists