]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Fix error paths and messages in mmc_init_card
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>
Wed, 1 Oct 2014 12:14:11 +0000 (07:14 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:28 +0000 (12:40 +0100)
commitf72a65fd60b0e05f403e87c2cb40d0e04bb2e136
treed8a46bc8af6e5fa47794199ef83992a4bae117a2
parent10bed8a11764c3cb9c8c5e7e88525eeb63c941c4
mmc: core: Fix error paths and messages in mmc_init_card

In mmc_init_card function some of the branches in error handling paths
go to "err" label, which skips removing of newly allocated card structure,
that will actually not be used. Fix that by using proper "free_card" label.

Also, some messages in these branches are reported as warnings,
although the operation processing is not continued. Change these
messages to error level.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c