Skip to content

Commit 991e33a

Browse files
nxpfrankligregkh
authored andcommitted
i3c: master: Fix miss free init_dyn_addr at i3c_master_put_i3c_addrs()
commit 3082990 upstream. if (dev->boardinfo && dev->boardinfo->init_dyn_addr) ^^^ here check "init_dyn_addr" i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr, ...) ^^^^ free "dyn_addr" Fix copy/paste error "dyn_addr" by replacing it with "init_dyn_addr". Cc: [email protected] Fixes: 3a379bb ("i3c: Add core I3C infrastructure") Reviewed-by: Miquel Raynal <[email protected]> Signed-off-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e1cf8c1 commit 991e33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i3c/master.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ static void i3c_master_put_i3c_addrs(struct i3c_dev_desc *dev)
12811281
I3C_ADDR_SLOT_FREE);
12821282

12831283
if (dev->boardinfo && dev->boardinfo->init_dyn_addr)
1284-
i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr,
1284+
i3c_bus_set_addr_slot_status(&master->bus, dev->boardinfo->init_dyn_addr,
12851285
I3C_ADDR_SLOT_FREE);
12861286
}
12871287

0 commit comments

Comments
 (0)