aboutsummaryrefslogtreecommitdiff
path: root/mm/mincore.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2014-04-05 15:14:22 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-06 18:59:09 -0700
commit7886e1875b9a2b04e47c9055cceb4c2127e12ed7 (patch)
tree2e00b4fe1fac2e2d525fd53e295c9b9af013ea14 /mm/mincore.c
parent70e5f0286c1bb0f6957b8e54c620ec845378bb69 (diff)
PCI: Fix incorrect vgaarb conditional in WARN_ON()
commit 67ebd8140dc8923c65451fa0f6a8eee003c4dcd3 upstream. 3448a19da479 "vgaarb: use bridges to control VGA routing where possible" added the "flags & PCI_VGA_STATE_CHANGE_DECODES" condition to an existing WARN_ON(), but used bitwise AND (&) instead of logical AND (&&), so the condition is never true. Replace with logical AND. Found by Coverity (CID 142811). Fixes: 3448a19da479 "vgaarb: use bridges to control VGA routing where possible" Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Yinghai Lu <yinghai@kernel.org> Acked-by: David Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/mincore.c')
0 files changed, 0 insertions, 0 deletions