85570b91e4
[ Upstream commit c21a8870c98611e8f892511825c9607f1e2cd456 ]
Upon rare occasions, KASAN reports a use-after-free Write
in srpt_refresh_port().
This seems to be because an event handler is registered before the
srpt device is fully setup and a race condition upon error may leave a
partially setup event handler in place.
Instead, only register the event handler after srpt device initialization
is complete.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ib_dm_mad.h | ||
ib_srpt.c | ||
ib_srpt.h |