linux/drivers/nfc/pn533
Dan Carpenter 2d6fd8a8dd nfc: pn533: Fix error code in pn533_acr122_poweron_rdr()
[ Upstream commit 885bebac99 ]

Set the error code if "transferred != sizeof(cmd)" instead of
returning success.

Fixes: dbafc28955 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-01-08 10:14:01 +01:00
..
i2c.c nfc: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-06-20 19:28:31 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile nfc: pn533: add UART phy driver 2019-10-29 21:05:26 -07:00
pn533.c nfc: pn533: Add poll mod list filling check 2024-08-29 12:08:44 +02:00
pn533.h nfc: pn533: Constify pn533_phy_ops 2021-10-07 13:35:10 +01:00
uart.c treewide, serdev: change receive_buf() return type to size_t 2024-01-27 18:13:53 -08:00
usb.c nfc: pn533: Fix error code in pn533_acr122_poweron_rdr() 2026-01-08 10:14:01 +01:00