video/fbdev/stifb: Return -ENOMEM after a failed kzalloc() in stifb_init_fb()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 28 Mar 2018 14:34:27 +0000 (16:34 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 28 Mar 2018 14:34:27 +0000 (16:34 +0200)
commitf9815f945aff2204b8afbbb9d2182024eb44a194
tree9d322debfc56e1f132ad7560ae7129cd43cf75b4
parentcfb810f85992071ef715188163afb34c1701dc85
video/fbdev/stifb: Return -ENOMEM after a failed kzalloc() in stifb_init_fb()

Replace an error code for the indication of a memory allocation failure
in this function.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2: Initial git repository build")
Suggested-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E. J. Bottomley" <jejb@parisc-linux.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/stifb.c