linux/drivers/i3c
Colin Ian King 8e3457372c i3c/master: Fix uninitialized variable next_addr
The variable next_addr is not initialized and is being used in a call
to i3c_master_get_free_addr as a starting point to find the next address.
Fix this by initializing next_addr to 0 to avoid an uninitialized garbage
starting address from being used.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: 9ad9a52cce ("i3c/master: introduce the mipi-i3c-hci driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Nicolas Pitre <npitre@baylibre.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-i3c/20201124123504.396249-1-colin.king@canonical.com
2020-11-25 11:02:43 +01:00
..
master i3c/master: Fix uninitialized variable next_addr 2020-11-25 11:02:43 +01:00
device.c i3c: Simplify i3c_device_match_id() 2020-02-28 09:36:01 +01:00
internals.h
Kconfig
Makefile
master.c i3c master: fix missing destroy_workqueue() on error in i3c_master_register 2020-11-23 10:22:16 +01:00