2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 03:33:58 +08:00
linux-next/drivers/staging/usbip
Julia Lawall 9358354858 drivers/staging/usbip/userspace/libsrc/vhci_driver.c: test the just-initialized value
Test the just-initialized value rather than some other one.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
identifier x,y,f!={PTR_ERR,ERR_PTR,ERR_CAST};
statement S;
@@

x = f(...);
(
if (\(x == NULL\|IS_ERR(x)\)) S
|
*if (\(y == NULL\|IS_ERR(y)\))
 { ... when != x
   return ...; }
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: David Chang <dchang@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-08-23 14:42:34 -07:00
..
userspace drivers/staging/usbip/userspace/libsrc/vhci_driver.c: test the just-initialized value 2011-08-23 14:42:34 -07:00
Kconfig staging: usbip: edit Kconfig and rename CONFIG options 2011-05-12 09:17:57 -07:00
Makefile staging: usbip: edit Kconfig and rename CONFIG options 2011-05-12 09:17:57 -07:00
README staging: usbip: README: we need to document the protocol 2011-06-07 14:08:51 -07:00
stub_dev.c Staging: usbip: Fix braces and spaces to match coding style. 2011-08-23 14:42:33 -07:00
stub_main.c staging: usbip: stub_main.c: simplify busid_table initialization 2011-06-07 14:29:16 -07:00
stub_rx.c Staging: usbip: Fix braces and spaces to match coding style. 2011-08-23 14:42:33 -07:00
stub_tx.c staging: fix usbip printk format warning 2011-07-08 13:59:55 -07:00
stub.h staging: usbip: Add header guards to stub.h and vhci.h 2011-08-23 14:42:34 -07:00
usbip_common.c USBIP: Remove unnecessary whitespace before newline characters. 2011-06-07 14:34:31 -07:00
usbip_common.h staging: usbip: usbip_common.h: reorganize and document request headers 2011-06-07 13:51:25 -07:00
usbip_event.c staging: usbip: replace usbip_u{dbg,err,info} and printk with dev_ and pr_ 2011-05-19 16:57:30 -07:00
usbip_protocol.txt staging: usbip: add a usbip protocol document 2011-08-23 14:42:34 -07:00
vhci_hcd.c Staging: usbip: vhci-hcd: Do not kill already dead RX/TX kthread 2011-07-05 20:14:10 -07:00
vhci_rx.c staging: usbip: remove unnecessary lines and extra return statements 2011-06-07 13:51:22 -07:00
vhci_sysfs.c usbip: change dev_attr_group to constant 2011-06-07 14:29:56 -07:00
vhci_tx.c staging: usbip: replace usbip_u{dbg,err,info} and printk with dev_ and pr_ 2011-05-19 16:57:30 -07:00
vhci.h staging: usbip: Add header guards to stub.h and vhci.h 2011-08-23 14:42:34 -07:00

TODO:
	- more discussion about the protocol
	- testing
	- review of the userspace interface
	- document the protocol

Please send patches for this code to Greg Kroah-Hartman <greg@kroah.com>