]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nfc: pn533: properly drop the usb interface reference on disconnect
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 11:28:30 +0000 (12:28 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Feb 2026 02:51:37 +0000 (18:51 -0800)
commit12133a483dfa832241fbbf09321109a0ea8a520e
tree329f5f6a24e73c4b91ad0e809b10eae697ed2412
parent2f61f38a217462411fed950e843b82bc119884cf
nfc: pn533: properly drop the usb interface reference on disconnect

When the device is disconnected from the driver, there is a "dangling"
reference count on the usb interface that was grabbed in the probe
callback.  Fix this up by properly dropping the reference after we are
done with it.

Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Fixes: c46ee38620a2 ("NFC: pn533: add NXP pn533 nfc device driver")
Link: https://patch.msgid.link/2026022329-flashing-ought-7573@gregkh
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/nfc/pn533/usb.c