diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-05-13 12:09:27 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-28 13:37:21 -0700 |
commit | 0f2893f0d1acff4bb1677b60c0486adc0075cb99 (patch) | |
tree | 54cb081d1b15bd1fd5d5c80f4f29ccea040423f7 /drivers/usb/serial/Makefile | |
parent | 4061f4987b45d8d4126a57c8333cb3a8aeb3e08a (diff) | |
download | linux-0f2893f0d1acff4bb1677b60c0486adc0075cb99.tar.bz2 |
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 <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/Makefile')
0 files changed, 0 insertions, 0 deletions