From: Prarit Bhargava Date: Tue, 5 May 2015 22:36:17 +0000 (-0400) Subject: staging: unisys: visorchannel cleanup visorchannel_create_guts() X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~821 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10c69bb7d9c492666690f2bd359493c2e900865b;p=pandora-kernel.git staging: unisys: visorchannel cleanup visorchannel_create_guts() The error handling in this function was broken and while looking at that I noticed that the whole function was in need of cleanup. This patch fixes the error handling, specifically if (!p) { visorchannel_destroy(p); channel = NULL; } and does a lot of cleanup. I also verified that the called functions returned correct errors, and that led to a change in visor_memregion_resize(), visorchannel_destroy() and visor_memregion_destroy(). Signed-off-by: Prarit Bhargava Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed