Re: usbip: vhci extension: modifications to vhci driver

2016-10-12 Thread Dan Carpenter
On Wed, Oct 12, 2016 at 05:24:31AM +, fx IWATA NOBUO wrote: > Hello, > > I will send a patch to clear this warning. > > The current behavior is as following: > vdev_to_vhci() is inline of container_of(). > A pointer (struct vhci_hcd *vhci) may be container_of() from NULL for a > while. > If

RE: usbip: vhci extension: modifications to vhci driver

2016-10-12 Thread fx IWATA NOBUO
com] > Sent: Wednesday, October 12, 2016 5:57 PM > To: fx IWATA NOBUO > Cc: linux-usb@vger.kernel.org > Subject: Re: usbip: vhci extension: modifications to vhci driver > > On Wed, Oct 12, 2016 at 05:24:31AM +, fx IWATA NOBUO wrote: > > Hello, > > > > I wi

RE: usbip: vhci extension: modifications to vhci driver

2016-10-11 Thread fx IWATA NOBUO
ion: modifications to vhci driver > > Hello Nobuo Iwata, > > This is a semi-automatic email about new static checker warnings. > > The patch 0775a9cbc694: "usbip: vhci extension: modifications to vhci > driver" from Jun 13, 2016, leads to the following Smatch complaint:

re: usbip: vhci extension: modifications to vhci driver

2016-10-11 Thread Dan Carpenter
Hello Nobuo Iwata, This is a semi-automatic email about new static checker warnings. The patch 0775a9cbc694: "usbip: vhci extension: modifications to vhci driver" from Jun 13, 2016, leads to the following Smatch complaint: drivers/usb/usbip/vhci_hcd.c:466 vhci_tx_urb() warn

[PATCH v5 1/3] usbip: vhci extension: modifications to vhci driver

2016-08-15 Thread Nobuo Iwata
Modification to Kconfig, vhci_hc.c, vhci.h and vhci_sysfs.c. 1. kernel config Followings are added. USBIP_VHCI_HC_PORTS: Number of ports per USB/IP virtual host controller. The default is 8 - same as current VHCI_NPORTS. USBIP_VHCI_NR_HCS: Number of USB/IP virtual host controllers. The

[PATCH v4 1/3] usbip: vhci extension: modifications to vhci driver

2016-06-12 Thread Nobuo Iwata
Modification to Kconfig, vhci_hc.c, vhci.h and vhci_sysfs.c. 1. kernel config Followings are added. USBIP_VHCI_HC_PORTS: Number of ports per USB/IP virtual host controller. The default is 8 - same as current VHCI_NPORTS. USBIP_VHCI_NR_HCS: Number of USB/IP virtual host controllers. The