drivers/mmc: correct error-handling code