In the Linux kernel, the following vulnerability has been resolved:
rapidio: add check for rioaddnet() in rioscanalloc_net()
The return value of rioaddnet() should be checked. If it fails, putdevice() should be called to free the memory and give up the reference initialized in rioadd_net().