mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-01 18:21:29 +00:00
ethernet: sun: add check for the mdesc_grab()
[ Upstream commit90de546d9a] In vnet_port_probe() and vsw_port_probe(), we should check the return value of mdesc_grab() as it may return NULL which can caused NPD bugs. Fixes:5d01fa0c6b("ldmvsw: Add ldmvsw.c driver code") Fixes:43fdf27470("[SPARC64]: Abstract out mdesc accesses for better MD update handling.") Signed-off-by: Liang He <windhl@126.com> Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
6992a1004d
commit
42e8ecb1d3
2 changed files with 6 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue