diff options
Diffstat (limited to 'drivers/rapidio/rio-scan.c')
-rw-r--r-- | drivers/rapidio/rio-scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c index 0914f49b0a53..2bebd791a092 100644 --- a/drivers/rapidio/rio-scan.c +++ b/drivers/rapidio/rio-scan.c | |||
@@ -516,7 +516,7 @@ static struct rio_dev __devinit *rio_setup_device(struct rio_net *net, | |||
516 | return rdev; | 516 | return rdev; |
517 | 517 | ||
518 | cleanup: | 518 | cleanup: |
519 | if (rio_is_switch(rdev)) | 519 | if (rswitch) |
520 | kfree(rswitch->route_table); | 520 | kfree(rswitch->route_table); |
521 | 521 | ||
522 | kfree(rdev); | 522 | kfree(rdev); |