linux/drivers/parport
QiaoChong d649a8e6dd parport_pc: fix find_superio io compare code, should use equal test.
commit 21698fd579 upstream.

In the original code before 181bf1e815 the loop was continuing until
it finds the first matching superios[i].io and p->base.
But after 181bf1e815 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: 181bf1e815 ("parport_pc: clean up the modified while loops using for")
Cc: Alan Cox <alan@linux.intel.com>
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2019-07-09 22:03:58 +01:00
..
BUGS-parport Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
daisy.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ieee1284.c Fix common misspellings 2011-03-31 11:26:23 -03:00
ieee1284_ops.c parport: fix ieee1284_epp_read_addr 2008-02-08 09:22:36 -08:00
Kconfig parport: fix menu breakage 2014-07-25 18:00:23 -07:00
Makefile [PATCH] AX88796 parallel port driver 2006-06-25 10:01:09 -07:00
multiface.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
parport_amiga.c parport: amiga: remove unnecessary platform_set_drvdata() 2013-08-27 21:39:16 -07:00
parport_atari.c parport: remove unused dead code from lowlevel drivers 2012-04-20 09:48:27 -07:00
parport_ax88796.c parport: convert drivers/parport/* to use module_platform_driver() 2011-11-30 20:11:46 +09:00
parport_cs.c drivers/parport: use module_pcmcia_driver() in pcmcia drivers 2013-03-15 12:26:38 -07:00
parport_gsc.c parisc: parport0: fix this legacy no-device port driver! 2013-06-01 14:46:42 +02:00
parport_gsc.h parisc: parport0: fix this legacy no-device port driver! 2013-06-01 14:46:42 +02:00
parport_ip32.c tree-wide: use reinit_completion instead of INIT_COMPLETION 2013-11-15 09:32:21 +09:00
parport_mfc3.c zorro: ZTWO_VADDR() should return "void __iomem *" 2013-11-26 11:09:07 +01:00
parport_pc.c parport_pc: fix find_superio io compare code, should use equal test. 2019-07-09 22:03:58 +01:00
parport_serial.c parport: Add support for the WCH353 1S/1P multi-IO card 2014-05-28 12:30:48 -07:00
parport_sunbpp.c parport: use kmemdup instead of kmalloc + memcpy 2013-03-25 10:42:06 -07:00
probe.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
procfs.c parport: convert use of typedef ctl_table to struct ctl_table 2014-06-06 16:08:15 -07:00
share.c parport: fix interruptible_sleep_on race 2014-02-28 16:22:42 -08:00
TODO-parport Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00