drm/mgag200: Fix error handling paths in fbdev driver
authorArchit Taneja <architt@codeaurora.org>
Thu, 17 Sep 2015 11:00:54 +0000 (16:30 +0530)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Sep 2015 22:10:41 +0000 (08:10 +1000)
commitaec9e12953e777f62acdab069656ebd9bcb6c9ba
treee8bc8ca57acae71a7e2e68d083ed07d7d32b9665
parent69e5d3f893e19613486f300fd6e631810338aa4b
drm/mgag200: Fix error handling paths in fbdev driver

Set up error handling in mgag200_fbdev_init and mgag200fb_create such that
they release the things they allocate, rather than relying on someone
calling mga_fbdev_destroy.

Based on a patch by Sudip Mukherjee <sudipm.mukherjee@gmail.com>

Link: http://lkml.kernel.org/r/55F6E68D.8070800@codeaurora.org
Reported-by: Ingo Molnar <mingo@kernel.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dave Airlie <airlied@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: dri-devel <dri-devel@lists.freedesktop.org>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mgag200/mgag200_fb.c