In the Linux kernel, the following vulnerability has been resolved: mmc: sunplus: fix return value check of mmcaddhost() mmcaddhost() may return error, if we ignore its return value, 1. the memory allocated in mmcallochost() will be leaked 2. null-ptr-deref will happen when calling mmcremovehost() in remove function spmmcdrvremove() because deleting not added device. Fix this by checking the return value of mmcaddhost(). Moreover, I fixed the error handling path of spmmcdrvprobe() to clean up.