diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-12-31 02:49:36 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-12-31 02:49:36 +0300 |
commit | bba3d2daa8a9bc888902275401f15ef48fcdd378 (patch) | |
tree | 82fc0c9b852be399200d374ed3eb0f91ce9811fe /drivers/ide/aec62xx.c | |
parent | e01b5781958de08942af341ce26768d5e0fbcdf5 (diff) | |
download | linux-bba3d2daa8a9bc888902275401f15ef48fcdd378.tar.xz |
rtc: nvmem: fix possible use after free
In cas of probe failure, devres may free the memory allocated for
rtc->nvram before devm_rtc_release_device() is called. This leads to
rtc_nvram_unregister using it after being freed which may lead to a crash.
This has been shown to happen after commit 461e557b9727 ("rtc: nvmem: use
devm_nvmem_register()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/ide/aec62xx.c')
0 files changed, 0 insertions, 0 deletions