diff options
Diffstat (limited to 'drivers/mtd/maps/bast-flash.c')
| -rw-r--r-- | drivers/mtd/maps/bast-flash.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/maps/bast-flash.c b/drivers/mtd/maps/bast-flash.c index bfe994e59265..8c19d722ac79 100644 --- a/drivers/mtd/maps/bast-flash.c +++ b/drivers/mtd/maps/bast-flash.c | |||
| @@ -104,8 +104,7 @@ static int bast_flash_remove(struct device *dev) | |||
| 104 | map_destroy(info->mtd); | 104 | map_destroy(info->mtd); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | if (info->partitions) | 107 | kfree(info->partitions); |
| 108 | kfree(info->partitions); | ||
| 109 | 108 | ||
| 110 | if (info->area) { | 109 | if (info->area) { |
| 111 | release_resource(info->area); | 110 | release_resource(info->area); |
