Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141257
b: refs/heads/master
c: e68f284
h: refs/heads/master
i:
  141255: 5e9b65d
v: v3
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent b9fba0a commit 958bc77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c62d8437aa50cfe996c5a5f8d62387bf9741316f
refs/heads/master: e68f2849c14bc64c728b1f35d67887a093c059c6
4 changes: 1 addition & 3 deletions trunk/drivers/staging/usbip/stub_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,14 @@ static struct stub_priv *stub_priv_alloc(struct stub_device *sdev,

spin_lock_irqsave(&sdev->priv_lock, flags);

priv = kmem_cache_alloc(stub_priv_cache, GFP_ATOMIC);
priv = kmem_cache_zalloc(stub_priv_cache, GFP_ATOMIC);
if (!priv) {
dev_err(&sdev->interface->dev, "alloc stub_priv\n");
spin_unlock_irqrestore(&sdev->priv_lock, flags);
usbip_event_add(ud, SDEV_EVENT_ERROR_MALLOC);
return NULL;
}

memset(priv, 0, sizeof(struct stub_priv));

priv->seqnum = pdu->base.seqnum;
priv->sdev = sdev;

Expand Down

0 comments on commit 958bc77

Please sign in to comment.