Files
linux/drivers
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 <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-08 14:58:36 -04:00
..
2017-04-30 11:45:31 -07:00
2017-04-27 11:54:49 +01:00
2017-04-17 00:42:22 +02:00
2017-04-20 09:54:24 +02:00
2017-04-08 17:51:48 +02:00
2017-04-10 16:43:41 +05:30
2017-05-03 15:52:10 -07:00