Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324612
b: refs/heads/master
c: 07ad99c
h: refs/heads/master
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent e805f19 commit 920abb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 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: 8f8b77bfdce811acbcf2248219a7aab5f92de938
refs/heads/master: 07ad99c9e32173852997523eb920950902563941
4 changes: 1 addition & 3 deletions trunk/drivers/staging/gdm72xx/gdm_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,10 @@ static struct sdio_tx *alloc_tx_struct(struct tx_cxt *tx)
{
struct sdio_tx *t = NULL;

t = kmalloc(sizeof(*t), GFP_ATOMIC);
t = kzalloc(sizeof(*t), GFP_ATOMIC);
if (t == NULL)
goto out;

memset(t, 0, sizeof(*t));

t->buf = kmalloc(TX_BUF_SIZE, GFP_ATOMIC);
if (t->buf == NULL)
goto out;
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/staging/gdm72xx/gdm_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ static struct usb_tx *alloc_tx_struct(struct tx_cxt *tx)
{
struct usb_tx *t = NULL;

t = kmalloc(sizeof(*t), GFP_ATOMIC);
t = kzalloc(sizeof(*t), GFP_ATOMIC);
if (t == NULL)
goto out;

memset(t, 0, sizeof(*t));

t->urb = usb_alloc_urb(0, GFP_ATOMIC);
t->buf = kmalloc(TX_BUF_SIZE, GFP_ATOMIC);
if (t->urb == NULL || t->buf == NULL)
Expand Down

0 comments on commit 920abb6

Please sign in to comment.