diff options
| author | Chaz Bailey <charles.s.bailey@gmail.com> | 2026-10-16 13:20:45 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-10-29 11:07:59 +0100 |
| commit | 2022b10726be78849626ea3fa33038ee96a54e46 (patch) | |
| tree | c98f7019b68b01a5fbed5fad53f6f1a559376704 /tools/perf/scripts/python/stackcollapse.py | |
| parent | d8090de52e0a8f1761ced4fc31d52a3e289e341c (diff) | |
usb: typec: nb7vpq904m: Set client data in probe to avoid crash on remove
nb7vpq904m_probe() allocates struct nb7vpq904m, but client data is not
set during probe.
In nb7vpq904m_remove(), i2c_get_clientdata(client) returns NULL, leading
to a NULL pointer dereference when accessing nb7->retimer or nb7->sw.
Set client data upon successful allocation in probe.
Fixes: 88d8f3ac9c67 ("usb: typec: add support for the nb7vpq904m Type-C Linear Redriver")
Cc: stable <stable@kernel.org>
Signed-off-by: Chaz Bailey <charles.s.bailey@gmail.com>
Reviewed-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20261016122045.187862-1-charles.s.bailey@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
