diff options
author | Dave Jiang <dave.jiang@intel.com> | 2020-02-11 20:42:47 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-02-13 17:41:00 +0300 |
commit | 61b5865d56bbb09dd5887b197dd324d1d4333d47 (patch) | |
tree | dc16bfd048476320562a3776dfea764e094c860b /Documentation/driver-api | |
parent | bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff) | |
download | linux-61b5865d56bbb09dd5887b197dd324d1d4333d47.tar.xz |
dmaengine: idxd: fix runaway module ref count on device driver bind
idxd_config_bus_probe() calls try_module_get() but never calls module_put()
when it fails. Thus with every failed attempt, the ref count goes up. Add
module_put() in failure paths.
Fixes: c52ca478233c ("dmaengine: idxd: add configuration component of driver")
Reported-by: Jerry Chen <jerry.t.chen@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/158144296730.41381.12134210685456322434.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'Documentation/driver-api')
0 files changed, 0 insertions, 0 deletions