diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-08 21:38:28 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-08 21:38:28 (GMT) |
commit | 7ca363f6872bede71e486352885de3a88f4a3967 (patch) | |
tree | 75d334cd41bfdd5c9c6c49cb58c1301adfbe3903 /drivers/staging/usbip | |
parent | e4b41af14d7dc683ecd84a10fed8ea38b94f0f28 (diff) | |
parent | a0f452520211385522aad5bd12d90aa59f17e094 (diff) | |
download | linux-7ca363f6872bede71e486352885de3a88f4a3967.tar.xz |
Merge branch 'staging-linus' into staging-work
This is to pull in the lustre fixes so that others can continue to work
on updating the lustre codebase, as well as resolve some merge issues
with the ion and ocproto drivers to keep linux-next happy.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/usbip')
-rw-r--r-- | drivers/staging/usbip/userspace/libsrc/names.c | 8 | ||||
-rw-r--r-- | drivers/staging/usbip/vhci_sysfs.c | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/staging/usbip/userspace/libsrc/names.c b/drivers/staging/usbip/userspace/libsrc/names.c index 3c8d28b..81ff852 100644 --- a/drivers/staging/usbip/userspace/libsrc/names.c +++ b/drivers/staging/usbip/userspace/libsrc/names.c @@ -169,14 +169,14 @@ static void *my_malloc(size_t size) struct pool *p; p = calloc(1, sizeof(struct pool)); - if (!p) { - free(p); + if (!p) return NULL; - } p->mem = calloc(1, size); - if (!p->mem) + if (!p->mem) { + free(p); return NULL; + } p->next = pool_head; pool_head = p; diff --git a/drivers/staging/usbip/vhci_sysfs.c b/drivers/staging/usbip/vhci_sysfs.c index 7423092..03e6edf 100644 --- a/drivers/staging/usbip/vhci_sysfs.c +++ b/drivers/staging/usbip/vhci_sysfs.c @@ -149,7 +149,8 @@ static int valid_args(__u32 rhport, enum usb_device_speed speed) case USB_SPEED_WIRELESS: break; default: - pr_err("speed %d\n", speed); + pr_err("Failed attach request for unsupported USB speed: %s\n", + usb_speed_string(speed)); return -EINVAL; } |