Revision 09f02902eb9cd41d4b88f4a5b93696297b57a3b0 authored by Heiner Kallweit on 03 March 2024, 10:45:22 UTC, committed by Wolfram Sang on 08 March 2024, 09:10:26 UTC
i801_probe_optional_slaves() is called before i801_add_mux().
This results in mux_pdev being checked before it's set by
i801_add_mux(). Fix this by changing the order of the calls.
I consider this safe as I see no dependencies.

Fixes: 80e56b86b59e ("i2c: i801: Simplify class-based client device instantiation")
Cc: stable@vger.kernel.org
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent 90d35da
History
File Mode Size
read_overflow-memchr.c -rw-r--r-- 123 bytes
read_overflow-memchr_inv.c -rw-r--r-- 127 bytes
read_overflow-memcmp.c -rw-r--r-- 124 bytes
read_overflow-memscan.c -rw-r--r-- 124 bytes
read_overflow2-memcmp.c -rw-r--r-- 124 bytes
read_overflow2-memcpy.c -rw-r--r-- 127 bytes
read_overflow2-memmove.c -rw-r--r-- 128 bytes
read_overflow2_field-memcpy.c -rw-r--r-- 138 bytes
read_overflow2_field-memmove.c -rw-r--r-- 139 bytes
test_fortify.h -rw-r--r-- 775 bytes
write_overflow-memcpy.c -rw-r--r-- 135 bytes
write_overflow-memmove.c -rw-r--r-- 136 bytes
write_overflow-memset.c -rw-r--r-- 130 bytes
write_overflow-strcpy-lit.c -rw-r--r-- 113 bytes
write_overflow-strcpy.c -rw-r--r-- 109 bytes
write_overflow-strncpy-src.c -rw-r--r-- 129 bytes
write_overflow-strncpy.c -rw-r--r-- 143 bytes
write_overflow-strscpy.c -rw-r--r-- 143 bytes
write_overflow_field-memcpy.c -rw-r--r-- 138 bytes
write_overflow_field-memmove.c -rw-r--r-- 139 bytes
write_overflow_field-memset.c -rw-r--r-- 137 bytes

back to top