Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3167
b: refs/heads/master
c: 9b200b0
h: refs/heads/master
i:
  3165: 3da10a4
  3163: acffebc
  3159: b3e8061
  3151: c74d998
  3135: 92b0b65
v: v3
  • Loading branch information
Jesper Juhl authored and David S. Miller committed Jun 24, 2005
1 parent 7d70f99 commit 8075c60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: d675c989ed2d4ba23dff615330b04371aea83534
refs/heads/master: 9b200b02a6c9cddca5132d64aa41156bbcddcbaa
14 changes: 4 additions & 10 deletions trunk/drivers/net/slip.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,18 +198,12 @@ sl_alloc_bufs(struct slip *sl, int mtu)
static void
sl_free_bufs(struct slip *sl)
{
void * tmp;

/* Free all SLIP frame buffers. */
tmp = xchg(&sl->rbuff, NULL);
kfree(tmp);
tmp = xchg(&sl->xbuff, NULL);
kfree(tmp);
kfree(xchg(&sl->rbuff, NULL));
kfree(xchg(&sl->xbuff, NULL));
#ifdef SL_INCLUDE_CSLIP
tmp = xchg(&sl->cbuff, NULL);
kfree(tmp);
if ((tmp = xchg(&sl->slcomp, NULL)) != NULL)
slhc_free(tmp);
kfree(xchg(&sl->cbuff, NULL));
slhc_free(xchg(&sl->slcomp, NULL));
#endif
}

Expand Down

0 comments on commit 8075c60

Please sign in to comment.