commit | 5a606223c6b5b7560da253ed52e62c67fa18e29b | [log] [tgz] |
---|---|---|
author | Marc Kleine-Budde <mkl@pengutronix.de> | Sat Jul 29 11:51:01 2017 +0200 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Thu Oct 19 13:05:54 2017 +0200 |
tree | 098958487eea2734994cbb5131508fa575c8d20e | |
parent | cae1d5b78fb4874086170ad07921bca59ea2e893 [diff] |
can: af_can: can_pernet_init(): add missing error handling for kzalloc returning NULL This patch adds the missing check and error handling for out-of-memory situations, when kzalloc cannot allocate memory. Fixes: cb5635a36776 ("can: complete initial namespace support") Acked-by: Oliver Hartkopp <socketcan@hartkopp.net> Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>