mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
net: dsa: qca8k: Add check for skb_copy
[ Upstream commit87355b7c3d] Add check for the return value of skb_copy in order to avoid NULL pointer dereference. Fixes:2cd5485663("net: dsa: qca8k: add support for phy read/write with mgmt Ethernet") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a7902cc5f5
commit
06a87ac14d
1 changed files with 3 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue