kernel: Fix all leaks and cleanup

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
usb: core: Fix driver.c

* Credits: Chester Kener <Cl3Kener@gmail.com>

Signed-off-by: Dan Trifan <jimsth@gmail.com>