diff options
author | Manish Chopra <manishc@marvell.com> | 2021-12-03 09:44:13 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-14 10:18:07 +0100 |
commit | 358544866727256a4184512913e03922968ec2c1 (patch) | |
tree | b4f3285b56b5d52ad95e14121df60bf994f3cbd9 /sound | |
parent | 23047a238f44bd11c0316598691eef2bfd2d557e (diff) | |
download | linux-stable-358544866727256a4184512913e03922968ec2c1.tar.gz linux-stable-358544866727256a4184512913e03922968ec2c1.tar.bz2 linux-stable-358544866727256a4184512913e03922968ec2c1.zip |
qede: validate non LSO skb length
commit 8e227b198a55859bf790dc7f4b1e30c0859c6756 upstream.
Although it is unlikely that stack could transmit a non LSO
skb with length > MTU, however in some cases or environment such
occurrences actually resulted into firmware asserts due to packet
length being greater than the max supported by the device (~9700B).
This patch adds the safeguard for such odd cases to avoid firmware
asserts.
v2: Added "Fixes" tag with one of the initial driver commit
which enabled the TX traffic actually (as this was probably
day1 issue which was discovered recently by some customer
environment)
Fixes: a2ec6172d29c ("qede: Add support for link")
Signed-off-by: Manish Chopra <manishc@marvell.com>
Signed-off-by: Alok Prasad <palok@marvell.com>
Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Link: https://lore.kernel.org/r/20211203174413.13090-1-manishc@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions