aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorXiaoke Wang <[email protected]>2022-02-18 10:19:39 +0800
committerDavid S. Miller <[email protected]>2022-02-18 12:00:44 +0000
commitb352c3465bb808ab700d03f5bac2f7a6f37c5350 (patch)
treeb690368eaf5e89449834e586359dc52e73cc4653 /lib/test_overflow.c
parenta1cdec57e03a1352e92fbbe7974039dda4efcec0 (diff)
net: ll_temac: check the return value of devm_kmalloc()
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions