summaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2022-04-30 00:09:13 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-14 17:54:00 +0300
commit42ecf1aa3b8dd428bcc84dc176805ffc9722d0d1 (patch)
tree6a8638109d21e2988be0bb7e42ae447d9269e612 /lib/memory-notifier-error-inject.c
parentefb15ff4a77fe053c941281775fefa91c87770e0 (diff)
downloadlinux-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/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions