]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: properly init drv_type
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 30 Nov 2017 14:49:10 +0000 (15:49 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 5 Dec 2017 16:14:00 +0000 (17:14 +0100)
commitfc50df518d6ea38344c44cbca3ab783b41abce70
tree04c927105ea9dfc527c8a1e9001cdffd2166c5d5
parent801e5e26cc5ea4b1605798e8aa077abea774915f
mmc: core: properly init drv_type

When the latest version of parsing the new eMMC bindings was moved from
core.c to mmc.c, it was overlooked that drv_type could be used
uninitialized. Fix it!

Fixes: 149334b47b481f ("mmc: parse new binding for eMMC fixed driver type")
Reported-by: Colin Ian King <colin.king@canonical.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c