aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/generated/handshake-user.c
diff options
context:
space:
mode:
authorGeorgi Valkov <[email protected]>2023-06-07 13:56:59 +0000
committerDavid S. Miller <[email protected]>2023-06-09 09:26:57 +0000
commit2203718c2f59ffdd6c78d54e5add594aebb4461e (patch)
tree8e909ff2119179b861f0ad8d6132d2f099b7ad8a /tools/net/ynl/generated/handshake-user.c
parentMerge branch 'splice-net-rewrite-splice-to-socket-fix-splice_f_more-and-handl... (diff)
downloadkernel-2203718c2f59ffdd6c78d54e5add594aebb4461e.tar.gz
kernel-2203718c2f59ffdd6c78d54e5add594aebb4461e.zip
usbnet: ipheth: fix risk of NULL pointer deallocation
The cleanup precedure in ipheth_probe will attempt to free a NULL pointer in dev->ctrl_buf if the memory allocation for this buffer is not successful. While kfree ignores NULL pointers, and the existing code is safe, it is a better design to rearrange the goto labels and avoid this. Signed-off-by: Georgi Valkov <[email protected]> Signed-off-by: Foster Snowhill <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/handshake-user.c')
0 files changed, 0 insertions, 0 deletions