summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorQiaoChong2019-02-09 21:59:07 +0100
committerGreg Kroah-Hartman2019-02-11 09:39:02 +0100
commit21698fd57984cd28207d841dbdaa026d6061bceb (patch)
tree668a40a887f0d9331074551545bb9026f3775e16 /drivers/misc
parentMerge tag 'extcon-next-for-5.1' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadkernel-qcow2-linux-21698fd57984cd28207d841dbdaa026d6061bceb.tar.gz
kernel-qcow2-linux-21698fd57984cd28207d841dbdaa026d6061bceb.tar.xz
kernel-qcow2-linux-21698fd57984cd28207d841dbdaa026d6061bceb.zip
parport_pc: fix find_superio io compare code, should use equal test.
In the original code before 181bf1e815a2 the loop was continuing until it finds the first matching superios[i].io and p->base. But after 181bf1e815a2 the logic changed and the loop now returns the pointer to the first mismatched array element which is then used in get_superio_dma() and get_superio_irq() and thus returning the wrong value. Fix the condition so that it now returns the correct pointer. Fixes: 181bf1e815a2 ("parport_pc: clean up the modified while loops using for") Cc: Alan Cox <alan@linux.intel.com> Cc: stable@vger.kernel.org Signed-off-by: QiaoChong <qiaochong@loongson.cn> [rewrite the commit message] Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions