Skip to content

Commit ec49843

Browse files
author
Ulf Hansson
committed
mmc: Merge branch fixes into next
Merge the mmc fixes for v6.3-rc[n] into the next branch, to allow them to get tested together with the new mmc changes that are targeted for v6.4. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2 parents 9d2e77f + 4b6d621 commit ec49843

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/memstick/core/memstick.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ static struct memstick_dev *memstick_alloc_card(struct memstick_host *host)
410410
return card;
411411
err_out:
412412
host->card = old_card;
413+
kfree_const(card->dev.kobj.name);
413414
kfree(card);
414415
return NULL;
415416
}
@@ -468,8 +469,10 @@ static void memstick_check(struct work_struct *work)
468469
put_device(&card->dev);
469470
host->card = NULL;
470471
}
471-
} else
472+
} else {
473+
kfree_const(card->dev.kobj.name);
472474
kfree(card);
475+
}
473476
}
474477

475478
out_power_off:

0 commit comments

Comments
 (0)