In the function iop13xx_pci_setup the res is first allocated. And then further down there is a switch where the default case looks like this.. default: return 0; I suggest adding a kfree(res); before the return. This leak was found by cppcheck - http://sourceforge.net/projects/cppcheck
Patch submitted and applied
Oops.. closed the wrong ticket
Thanks - patch queued