Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54591
b: refs/heads/master
c: d9a2f4a
h: refs/heads/master
i:
  54589: 9a00cf9
  54587: c59ef14
  54583: 7492f7b
  54575: d781d05
  54559: cc9afaf
  54527: 5639192
v: v3
  • Loading branch information
Amit Choudhary authored and Linus Torvalds committed May 8, 2007
1 parent 85e243d commit 6aa9cac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: fd463870dc89cac0f590ea007e3a5210103b1b04
refs/heads/master: d9a2f4a4945ebff54c9a011e4dc6e92d899ae26d
7 changes: 6 additions & 1 deletion trunk/drivers/char/synclink.c
Original file line number Diff line number Diff line change
Expand Up @@ -4010,8 +4010,13 @@ static int mgsl_alloc_intermediate_txbuffer_memory(struct mgsl_struct *info)
for ( i=0; i<info->num_tx_holding_buffers; ++i) {
info->tx_holding_buffers[i].buffer =
kmalloc(info->max_frame_size, GFP_KERNEL);
if ( info->tx_holding_buffers[i].buffer == NULL )
if (info->tx_holding_buffers[i].buffer == NULL) {
for (--i; i >= 0; i--) {
kfree(info->tx_holding_buffers[i].buffer);
info->tx_holding_buffers[i].buffer = NULL;
}
return -ENOMEM;
}
}

return 0;
Expand Down

0 comments on commit 6aa9cac

Please sign in to comment.