Revision d46ef750ed58cbeeba2d9a55c99231c30a172764 authored by Evgeny Novikov on 01 June 2021, 16:38:01 UTC, committed by Jiri Kosina on 16 September 2021, 07:14:33 UTC
devm_add_action_or_reset() can suddenly invoke amd_mp2_pci_remove() at registration that will cause NULL pointer dereference since corresponding data is not initialized yet. The patch moves initialization of data before devm_add_action_or_reset(). Found by Linux Driver Verification project (linuxtesting.org). [jkosina@suse.cz: rebase] Signed-off-by: Evgeny Novikov <novikov@ispras.ru> Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 0c8fbaa
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 75.5 KB |
Makefile | -rw-r--r-- | 1.1 KB |
calibrate.c | -rw-r--r-- | 8.6 KB |
do_mounts.c | -rw-r--r-- | 14.6 KB |
do_mounts.h | -rw-r--r-- | 908 bytes |
do_mounts_initrd.c | -rw-r--r-- | 3.4 KB |
do_mounts_rd.c | -rw-r--r-- | 7.7 KB |
init_task.c | -rw-r--r-- | 6.2 KB |
initramfs.c | -rw-r--r-- | 16.3 KB |
main.c | -rw-r--r-- | 39.1 KB |
noinitramfs.c | -rw-r--r-- | 813 bytes |
version.c | -rw-r--r-- | 1.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...