diff options
author | Shuah Khan <skhan@linuxfoundation.org> | 2022-04-30 00:09:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-14 17:54:00 +0300 |
commit | 42ecf1aa3b8dd428bcc84dc176805ffc9722d0d1 (patch) | |
tree | 6a8638109d21e2988be0bb7e42ae447d9269e612 /lib/timerqueue.c | |
parent | efb15ff4a77fe053c941281775fefa91c87770e0 (diff) | |
download | linux-42ecf1aa3b8dd428bcc84dc176805ffc9722d0d1.tar.xz |
misc: rtsx: set NULL intfdata when probe fails
[ Upstream commit f861d36e021e1ac4a0a2a1f6411d623809975d63 ]
rtsx_usb_probe() doesn't call usb_set_intfdata() to null out the
interface pointer when probe fails. This leaves a stale pointer.
Noticed the missing usb_set_intfdata() while debugging an unrelated
invalid DMA mapping problem.
Fix it with a call to usb_set_intfdata(..., NULL).
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220429210913.46804-1-skhan@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions