projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5914428
)
nfc: pn533: Fix error code in pn533_acr122_poweron_rdr()
author
Dan Carpenter
<dan.carpenter@linaro.org>
Tue, 9 Dec 2025 06:56:39 +0000
(09:56 +0300)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 11 Dec 2025 09:40:00 +0000
(
01:40
-0800)
Set the error code if "transferred != sizeof(cmd)" instead of
returning success.
Fixes:
dbafc28955fa
("NFC: pn533: don't send USB data off of the stack")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link:
https://patch.msgid.link/aTfIJ9tZPmeUF4W1@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/nfc/pn533/usb.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/pn533/usb.c
b/drivers/nfc/pn533/usb.c
index
ffd7367
..
018a806
100644
(file)
--- a/
drivers/nfc/pn533/usb.c
+++ b/
drivers/nfc/pn533/usb.c
@@
-406,7
+406,7
@@
static int pn533_acr122_poweron_rdr(struct pn533_usb_phy *phy)
if (rc || (transferred != sizeof(cmd))) {
nfc_err(&phy->udev->dev,
"Reader power on cmd error %d\n", rc);
- return rc;
+ return rc
?: -EINVAL
;
}
rc = usb_submit_urb(phy->in_urb, GFP_KERNEL);