linux-hardened/drivers/rapidio
Peter Senna Tschudin 18f6287f53 drivers/rapidio/devices/tsi721.c: fix error return code
Convert a nonnegative error return code to a negative one, as returned
elsewhere in the function.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-10-06 03:05:20 +09:00
..
devices drivers/rapidio/devices/tsi721.c: fix error return code 2012-10-06 03:05:20 +09:00
switches drivers/rapidio: idt_gen2.c is implicitly relying on getting stat.h 2011-10-31 19:31:57 -04:00
Kconfig rapidio: add DMA engine support for RIO data transfers 2012-05-31 17:49:31 -07:00
Makefile RapidIO: add mport driver for Tsi721 bridge 2011-11-02 16:07:01 -07:00
rio-access.c [RAPIDIO] Add RapidIO multi mport support 2008-04-29 19:40:28 +10:00
rio-driver.c rapidio: fix RapidIO sysfs hierarchy 2010-10-27 18:03:15 -07:00
rio-scan.c RapidIO: fix potential null deref in rio_setup_device() 2011-11-02 16:07:01 -07:00
rio-sysfs.c rapidio: modify configuration to support PCI-SRIO controller 2011-03-23 19:46:42 -07:00
rio.c rapidio: add DMA engine support for RIO data transfers 2012-05-31 17:49:31 -07:00
rio.h rapidio: add handling of redundant routes 2010-10-27 18:03:16 -07:00