From: Takashi Iwai Date: Tue, 13 May 2014 10:09:27 +0000 (+0200) Subject: vgacon: Fix & cleanup refcounting X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~35^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f2893f0d1acff4bb1677b60c0486adc0075cb99;p=pandora-kernel.git vgacon: Fix & cleanup refcounting The vgacon driver prepares a two element array of uni_pagedir_loc and uses the second item as its own reference counter for sharing the uni_pagedir. And the code assumes blindly that the second item is available if the assigned vc_uni_pagedir isn't the standard one, which might be wrong (although currently it's so). This patch fixes that wrong assumption, and gives a slight cleanup along with it: namely, instead of array, just give the uni_pagedir_loc and a separate refcount variable. It makes the code a bit more understandable at first glance. Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed