Skip to contentSkip to conversation

usb: typec: mux: Take care of driver module reference counting

PATCH New Greg Kroah-Hartman 1 participant 1 message Sep 20, 2018

Subsystems (2)
lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 1/2 usb: typec: mux: Take care of driver module reference counting

Quoted 11 lines · Heikki Krogerus

Functions typec_mux_get() and typec_switch_get() already make sure that the mux device reference count is incremented, but the same must be done to the driver module as well to prevent the drivers from being unloaded in the middle of operation.

This fixes a potential "BUG: unable to handle kernel paging request at ..." from happening.

Fixes 93dd2112c7b2 ("usb: typec: mux: Get the mux identifier from function parameter")

Why is this flagged for stable? 93dd2112c7b2 went into 4.19-rc1 and has not been backported anywhere else.

confused,

greg k-h