Files
linux/drivers
QiaoChong 21698fd579 parport_pc: fix find_superio io compare code, should use equal test.
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>
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>
2019-02-11 09:39:02 +01:00
..
2019-02-11 09:05:58 +01:00
2018-12-29 08:20:44 -07:00
2019-01-28 08:13:52 +01:00
2019-02-11 09:05:58 +01:00
2019-01-09 19:20:31 -05:00
2019-01-26 11:14:25 +01:00
2019-02-06 17:24:37 -05:00
2019-02-11 09:05:58 +01:00
2019-01-28 08:13:52 +01:00
2018-12-24 12:06:56 +01:00
2019-02-11 09:05:58 +01:00
2019-01-28 22:53:09 -08:00
2019-01-28 08:13:52 +01:00