aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/sbe-2t3e3
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/sbe-2t3e3')
-rw-r--r--drivers/staging/sbe-2t3e3/dc.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/staging/sbe-2t3e3/dc.c b/drivers/staging/sbe-2t3e3/dc.c
index dc53016d546..9dc4ec2109e 100644
--- a/drivers/staging/sbe-2t3e3/dc.c
+++ b/drivers/staging/sbe-2t3e3/dc.c
@@ -442,15 +442,10 @@ void dc_drop_descriptor_list(struct channel *sc)
442 } 442 }
443 } 443 }
444 444
445 if (sc->ether.rx_ring != NULL) { 445 kfree(sc->ether.rx_ring);
446 kfree(sc->ether.rx_ring); 446 sc->ether.rx_ring = NULL;
447 sc->ether.rx_ring = NULL; 447 kfree(sc->ether.tx_ring);
448 } 448 sc->ether.tx_ring = NULL;
449
450 if (sc->ether.tx_ring != NULL) {
451 kfree(sc->ether.tx_ring);
452 sc->ether.tx_ring = NULL;
453 }
454} 449}
455 450
456 451