summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2021-09-02 10:40:59 -0700
committerUlf Hansson <ulf.hansson@linaro.org>2021-10-12 10:21:16 +0200
commitb3f8eb6eb213977cb4e84af4067b234356936f82 (patch)
tree6e0f078c1e8246ff5e19d49f5818fada371e486d /drivers/mmc
parent2304c55fd506fcd5e1a59ae21a306ee82507340b (diff)
downloadlinux-stable-b3f8eb6eb213977cb4e84af4067b234356936f82.tar.gz
linux-stable-b3f8eb6eb213977cb4e84af4067b234356936f82.tar.bz2
linux-stable-b3f8eb6eb213977cb4e84af4067b234356936f82.zip
memstick: mspro_block: Add error handling support for add_disk()
We never checked for errors on add_disk() as this function returned void. Now that this is fixed, use the shiny new error handling. Contrary to the typical removal which delays the put_disk() until later, since we are failing on a probe we immediately put the disk on failure from add_disk by using blk_cleanup_disk(). Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Link: https://lore.kernel.org/r/20210902174105.2418771-4-mcgrof@kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions