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
Kconfig -rw-r--r-- 430 bytes
Makefile -rw-r--r-- 332 bytes
cordic.c -rw-r--r-- 2.2 KB
div64.c -rw-r--r-- 4.8 KB
gcd.c -rw-r--r-- 1.4 KB
int_log.c -rw-r--r-- 4.6 KB
int_pow.c -rw-r--r-- 629 bytes
int_sqrt.c -rw-r--r-- 1.2 KB
lcm.c -rw-r--r-- 482 bytes
prime_numbers.c -rw-r--r-- 6.5 KB
rational-test.c -rw-r--r-- 1.7 KB
rational.c -rw-r--r-- 3.0 KB
reciprocal_div.c -rw-r--r-- 1.5 KB
test_div64.c -rw-r--r-- 7.3 KB

back to top