]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc/sticon: fix reverse colors
authorSven Schnelle <svens@stackframe.org>
Sun, 14 Nov 2021 16:08:17 +0000 (17:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:36:23 +0000 (11:36 +0100)
commit4f4a15eb596e87e3a7c2c15e5f92a84ac2cd7827
treee9c819a8e19601e99ecfb42e056adb034fdc34f2
parented058d735a70f4b063323f1a7bb33cda0f987513
parisc/sticon: fix reverse colors

commit bec05f33ebc1006899c6d3e59a00c58881fe7626 upstream.

sticon_build_attr() checked the reverse argument and flipped
background and foreground color, but returned the non-reverse
value afterwards. Fix this and also add two local variables
for foreground and background color to make the code easier
to read.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/console/sticon.c