]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Avoid NULL pointer dereference on systems without numa awareness
authorMartin Habets <habetsm.xilinx@gmail.com>
Tue, 29 Mar 2022 16:07:49 +0000 (17:07 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 30 Mar 2022 19:08:58 +0000 (12:08 -0700)
commitc6c0dcb9d173adc42a5d36d02f5129f5141f1eed
tree5c63e1ffe9dbe0c2d815368467fc792baee47801
parent09c7b368f9e19281c7938b4647507decad7c3715
sfc: Avoid NULL pointer dereference on systems without numa awareness

On such systems cpumask_of_node() returns NULL, which bitmap
operations are not happy with.

Fixes: 809a65e50e57 ("sfc: default config to 1 channel/core in local NUMA node only")
Fixes: 4a6ec1c57bd6 ("sfc: set affinity hints in local NUMA node only")
Signed-off-by: Martin Habets <habetsm.xilinx@gmail.com>
Reviewed-by: Íñigo Huguet <ihuguet@redhat.com>
Link: https://lore.kernel.org/r/164857006953.8140.3265568858101821256.stgit@palantir17.mph.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/efx_channels.c