summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorXiaoke Wang <xkernel.wang@foxmail.com>2022-02-18 10:19:39 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-03-02 11:41:08 +0100
commiteee01c88c90f6803e0d1b125d1c887f0b6a4d5d3 (patch)
tree248b594f5072ac1580df76020eb537ceb5250a3f /include/net
parentfc92a14fa07641c56e122a0e364f739bc7d85306 (diff)
net: ll_temac: check the return value of devm_kmalloc()
commit b352c3465bb808ab700d03f5bac2f7a6f37c5350 upstream. devm_kmalloc() returns a pointer to allocated memory on success, NULL on failure. While lp->indirect_lock is allocated by devm_kmalloc() without proper check. It is better to check the value of it to prevent potential wrong memory access. Fixes: f14f5c11f051 ("net: ll_temac: Support indirect_mutex share within TEMAC IP") Signed-off-by: Xiaoke Wang <xkernel.wang@foxmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions