In the Linux kernel, the following vulnerability has been resolved:
rpmsg: Fix possible refcount leak in rpmsgregisterdevice_override()
rpmsgregisterdeviceoverride need to call putdevice to free vch when driversetoverride fails.
Fix this by adding a put_device() to the error path.