diff options
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r-- | drivers/net/hamradio/mkiss.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index 85d6dc005be0..3e9accf137e7 100644 --- a/drivers/net/hamradio/mkiss.c +++ b/drivers/net/hamradio/mkiss.c | |||
@@ -390,10 +390,8 @@ static void ax_changedmtu(struct mkiss *ax) | |||
390 | "MTU change cancelled.\n", | 390 | "MTU change cancelled.\n", |
391 | ax->dev->name); | 391 | ax->dev->name); |
392 | dev->mtu = ax->mtu; | 392 | dev->mtu = ax->mtu; |
393 | if (xbuff != NULL) | 393 | kfree(xbuff); |
394 | kfree(xbuff); | 394 | kfree(rbuff); |
395 | if (rbuff != NULL) | ||
396 | kfree(rbuff); | ||
397 | return; | 395 | return; |
398 | } | 396 | } |
399 | 397 | ||