aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDave Penkler <[email protected]>2024-12-07 12:34:10 +0000
committerGreg Kroah-Hartman <[email protected]>2024-12-20 15:43:02 +0000
commitfd1885db8ecab1abc96dbb9df49b0d4b9eed1672 (patch)
tree2dce5f2fc8118311a877f47671182ab73b2d8ede /net/unix/af_unix.c
parentstaging: gpib: Fix erroneous removal of blank before newline (diff)
downloadkernel-fd1885db8ecab1abc96dbb9df49b0d4b9eed1672.tar.gz
kernel-fd1885db8ecab1abc96dbb9df49b0d4b9eed1672.zip
staging: gpib: Add lower bound check for secondary address
Commit 9dde4559e939 ("staging: gpib: Add GPIB common core driver") from Sep 18, 2024 (linux-next), leads to the following Smatch static checker warning: drivers/staging/gpib/common/gpib_os.c:541 dvrsp() warn: no lower bound on 'sad' rl='s32min-30' The value -1 was introduced in user land to signify No secondary address to the driver so that a lower bound check could be added. This patch adds that check. Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/linux-staging/[email protected]/ Signed-off-by: Dave Penkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions