Files
linux/drivers/net/dsa
Christophe Jaillet 8ce7aaaa97 net: dsa: loop: Check for memory allocation failure
If 'devm_kzalloc' fails, a NULL pointer will be dereferenced.
Return -ENOMEM instead, as done for some other memory allocation just a
few lines above.

Fixes: 98cd1552ea ("net: dsa: Mock-up driver")
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Acked-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2017-05-08 14:58:36 -04:00
..
2017-04-01 12:39:32 -07:00
2017-04-01 12:39:32 -07:00
2017-04-21 15:33:55 -04:00