aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorZheng Yongjun <[email protected]>2022-03-29 09:08:00 +0000
committerJakub Kicinski <[email protected]>2022-03-30 12:07:38 -0700
commit866b7a278cdb51eb158cd8513bc7438fc857804a (patch)
tree72908ac61131087d8ca82603ab1a4de659863ea9 /net/unix/af_unix.c
parent77c9387c0c5bd496fba3200024e3618356b2fd34 (diff)
net: dsa: felix: fix possible NULL pointer dereference
As the possible failure of the allocation, kzalloc() may return NULL pointer. Therefore, it should be better to check the 'sgi' in order to prevent the dereference of NULL pointer. Fixes: 23ae3a7877718 ("net: dsa: felix: add stream gate settings for psfp"). Signed-off-by: Zheng Yongjun <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions