OSDN Git Service

video: fbdev: au1200fb: Release some resources if a memory allocation fails
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 9 Nov 2017 17:09:28 +0000 (18:09 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Thu, 9 Nov 2017 17:09:28 +0000 (18:09 +0100)
commit451f130602619a17c8883dd0b71b11624faffd51
treeff621a8d8c7b5103fb14d2f7f59735d83a285f64
parent8cae353e6b01ac3f18097f631cdbceb5ff28c7f3
video: fbdev: au1200fb: Release some resources if a memory allocation fails

We should go through the error handling code instead of returning -ENOMEM
directly.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/au1200fb.c