]> git.baikalelectronics.ru Git - kernel.git/commit
s390/con3270: testing return kzalloc retval
authorPierre Morel <pmorel@linux.vnet.ibm.com>
Mon, 21 Dec 2015 14:31:06 +0000 (15:31 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 30 Dec 2015 09:34:33 +0000 (10:34 +0100)
commitf7fa89fbbb732c9ded7c767f8760417b506893b6
treebbb6f174bb1c5db77d8b79cf56eab037851019fa
parent17d938da8f2a1629131a551aeb878472b8a723c6
s390/con3270: testing return kzalloc retval

Return value from kzalloc is not tested and
using a null pointer would lead to crash.

Even if this should not happen at this moment, we
may let the system decide if there is a better choice.

Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/con3270.c