diff options
author | Alexander Kappner <[email protected]> | 2018-03-28 15:18:31 -0700 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2018-04-04 09:56:23 +0200 |
commit | d0a0852b9f81cf5f793bf2eae7336ed40a1a1815 (patch) | |
tree | a41bd7a09cf53cdca99dd2cc835befc0599b79b6 /drivers/rtc/rtc-dev.c | |
parent | a04f0017c22453613d5f423326b190c61e3b4f98 (diff) |
mmc: core: Prevent bus reference leak in mmc_blk_init()
Upon module load, mmc_block allocates a bus with bus_registeri() in
mmc_blk_init(). This reference never gets freed during module unload, which
leads to subsequent re-insertions of the module fails and a WARN() splat is
triggered.
Fix the bug by dropping the reference for the bus in mmc_blk_exit().
Signed-off-by: Alexander Kappner <[email protected]>
Fixes: 97548575bef3 ("mmc: block: Convert RPMB to a character device")
Cc: <[email protected]>
Reviewed-by: Shawn Lin <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/rtc/rtc-dev.c')
0 files changed, 0 insertions, 0 deletions