staging: dgnc: return -ENOMEM when kzalloc failed
authorDaeseok Youn <daeseok.youn@gmail.com>
Tue, 5 Apr 2016 09:29:43 +0000 (18:29 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 00:46:00 +0000 (17:46 -0700)
commit16f10a825da5b9361ef8e8da76720c37f0116da4
treeba2672ec6d79d0f58a2f99884e336c6be6732f71
parent6b3752d8ce67dc62150db9d153e72c7a98db4007
staging: dgnc: return -ENOMEM when kzalloc failed

The kzalloc can be failed when memory is not enough
to allocate. When kzalloc failed, it need to return
error code with ENOMEM

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c