lan78xx: Fix memory allocation bug
authorJohn Efstathiades <john.efstathiades@pebblebay.com>
Thu, 18 Nov 2021 11:01:34 +0000 (11:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 12:11:50 +0000 (12:11 +0000)
commita6df95cae40bee555e01a37b4023ce8e97ffa249
treef3958655c766c38e7d3e247e55628e9b93fb8696
parentd091ec975b5af484c1c4e823ec22546bbaf3e2cc
lan78xx: Fix memory allocation bug

Fix memory allocation that fails to check for NULL return.

Signed-off-by: John Efstathiades <john.efstathiades@pebblebay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c