Messages in this thread | | | Subject | Re: [PATCH] net: dsa: loop: Check for memory allocation failure | From | Florian Fainelli <> | Date | Sun, 7 May 2017 16:22:44 -0700 |
| |
Le 05/05/17 à 22:29, Christophe JAILLET a écrit : > 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: 98cd1552ea27 ("net: dsa: Mock-up driver") > > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Florian Fainelli <f.fainelli@gmail.com> -- Florian
| |