Files
linux/drivers/net/ethernet/mellanox/mlxsw
Ido Schimmel 6f497930af mlxsw: spectrum_switchdev: Check status of memory allocation
We can't rely on kzalloc() always succeeding, so check its return value.

Suppresses the following smatch error:

mlxsw_sp_switchdev_event() error: potential null dereference
'switchdev_work->fdb_info.addr'.  (kzalloc returns
 null)

Fixes: af06137892 ("mlxsw: spectrum_switchdev: Add support for learning FDB through notification")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-07-12 08:15:52 -07:00
..
2017-03-08 23:17:38 -08:00
2017-01-09 14:35:13 -05:00
2016-11-16 23:29:04 -05:00
2016-10-30 16:50:17 -04:00
2017-04-11 11:16:03 -04:00
2017-06-06 12:45:24 -04:00
2016-11-25 21:22:14 -05:00
2017-06-06 12:45:24 -04:00