aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32-lp.c
diff options
context:
space:
mode:
authorSteven Price <[email protected]>2019-05-17 21:31:47 +0000
committerLinus Torvalds <[email protected]>2019-05-18 22:52:26 +0000
commit5d59aa8f9ce972b472201aed86e904bb75879ff0 (patch)
tree4584b44a49d089b3a991a0f0a2d25f01b8cc2a95 /drivers/pwm/pwm-stm32-lp.c
parentfs/writeback.c: use rcu_barrier() to wait for inflight wb switches going into... (diff)
downloadkernel-5d59aa8f9ce972b472201aed86e904bb75879ff0.tar.gz
kernel-5d59aa8f9ce972b472201aed86e904bb75879ff0.zip
initramfs: don't free a non-existent initrd
Since commit 54c7a8916a88 ("initramfs: free initrd memory if opening /initrd.image fails"), the kernel has unconditionally attempted to free the initrd even if it doesn't exist. In the non-existent case this causes a boot-time splat if CONFIG_DEBUG_VIRTUAL is enabled due to a call to virt_to_phys() with a NULL address. Instead we should check that the initrd actually exists and only attempt to free it if it does. Link: http://lkml.kernel.org/r/[email protected] Fixes: 54c7a8916a88 ("initramfs: free initrd memory if opening /initrd.image fails") Signed-off-by: Steven Price <[email protected]> Reported-by: Mark Rutland <[email protected]> Tested-by: Mark Rutland <[email protected]> Reviewed-by: Mike Rapoport <[email protected]> Cc: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32-lp.c')
0 files changed, 0 insertions, 0 deletions