aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw
diff options
context:
space:
mode:
authorDominik Czarnota <dominik.b.czarnota@gmail.com>2020-03-09 16:22:50 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-11 23:07:34 -0700
commitf3cc008bf6d59b8d93b4190e01d3e557b0040e15 (patch)
tree839c2420a7434c3826a467f8d0d303f904ca096c /drivers/dma/dw
parentnet: caif: Add lockdep expression to RCU traversal primitive (diff)
downloadlinux-dev-f3cc008bf6d59b8d93b4190e01d3e557b0040e15.tar.xz
linux-dev-f3cc008bf6d59b8d93b4190e01d3e557b0040e15.zip
sxgbe: Fix off by one in samsung driver strncpy size arg
This patch fixes an off-by-one error in strncpy size argument in drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c. The issue is that in: strncmp(opt, "eee_timer:", 6) the passed string literal: "eee_timer:" has 10 bytes (without the NULL byte) and the passed size argument is 6. As a result, the logic will also accept other, malformed strings, e.g. "eee_tiXXX:". This bug doesn't seem to have any security impact since its present in module's cmdline parsing code. Signed-off-by: Dominik Czarnota <dominik.b.czarnota@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/dma/dw')
0 files changed, 0 insertions, 0 deletions