diff options
| author | Ido Schimmel <idosch@mellanox.com> | 2017-07-12 10:12:55 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-07-12 18:15:52 +0300 |
| commit | 6f497930af73863b32e8c73947a52d1003af31e2 (patch) | |
| tree | ac244ff50fadeadd355f6bd436f45b37f2c5c24e /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | a9265b804dfdfca4e2ce3730fe0528da9c01dbf7 (diff) | |
| download | linux-6f497930af73863b32e8c73947a52d1003af31e2.tar.xz | |
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: af061378924f ("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>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
