summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-pca963x.c
diff options
context:
space:
mode:
authorEsben Haabendal <esben@geanix.com>2021-06-18 13:52:33 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-18 22:11:51 +0300
commitc364df2489b8ef2f5e3159b1dff1ff1fdb16040d (patch)
tree0be426b319a980f12f459e269c7893c3b7c6b558 /drivers/leds/leds-pca963x.c
parent28d9fab458b16bcd83f9dd07ede3d585c3e1a69e (diff)
downloadlinux-c364df2489b8ef2f5e3159b1dff1ff1fdb16040d.tar.xz
net: ll_temac: Fix TX BD buffer overwrite
Just as the initial check, we need to ensure num_frag+1 buffers available, as that is the number of buffers we are going to use. This fixes a buffer overflow, which might be seen during heavy network load. Complete lockup of TEMAC was reproducible within about 10 minutes of a particular load. Fixes: 84823ff80f74 ("net: ll_temac: Fix race condition causing TX hang") Cc: stable@vger.kernel.org # v5.4+ Signed-off-by: Esben Haabendal <esben@geanix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/leds/leds-pca963x.c')
0 files changed, 0 insertions, 0 deletions