Re: [patch net-next v2] mlxsw: core: Use devm_kzalloc to allocate mlxsw_hwmon structure
From: Jiri PirkoDate: Tue, 22 Dec 2015 09:43:07 +0100 > From: Jiri Pirko > > KASan reported use-after-free for the hwmon structure. So fix this by > using devm_kzalloc and let the core take care about freeing the memory > during device dettach. > >
[patch net-next v2] mlxsw: core: Use devm_kzalloc to allocate mlxsw_hwmon structure
From: Jiri PirkoKASan reported use-after-free for the hwmon structure. So fix this by using devm_kzalloc and let the core take care about freeing the memory during device dettach. Reported-by: Ido Schimmel Fixes: 89309da39 ("mlxsw: core: Implement