summaryrefslogtreecommitdiff
path: root/drivers/staging/usbip/userspace
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-08 21:38:28 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-08 21:38:28 (GMT)
commit7ca363f6872bede71e486352885de3a88f4a3967 (patch)
tree75d334cd41bfdd5c9c6c49cb58c1301adfbe3903 /drivers/staging/usbip/userspace
parente4b41af14d7dc683ecd84a10fed8ea38b94f0f28 (diff)
parenta0f452520211385522aad5bd12d90aa59f17e094 (diff)
downloadlinux-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/userspace')
-rw-r--r--drivers/staging/usbip/userspace/libsrc/names.c8
1 files changed, 4 insertions, 4 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;