diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2022-11-22 06:32:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-27 09:44:22 +0300 |
commit | 8271145523a5f6e71fd82ae706225a8bd8e6efc7 (patch) | |
tree | 11e67d4fe082dbceba39340fe0876d6ee1e316dc /net/ipv6 | |
parent | 41c6d8ff71cd93748153cd186ff713e23c6f5e2a (diff) | |
download | linux-8271145523a5f6e71fd82ae706225a8bd8e6efc7.tar.xz |
NTB: ntb_tool: Add check for devm_kcalloc
[ Upstream commit 2790143f09938776a3b4f69685b380bae8fd06c7 ]
As the devm_kcalloc may return NULL pointer,
it should be better to add check for the return
value, as same as the others.
Fixes: 7f46c8b3a552 ("NTB: ntb_tool: Add full multi-port NTB API support")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions