diff options
author | loos <loos@FreeBSD.org> | 2015-08-17 16:51:37 +0000 |
---|---|---|
committer | loos <loos@FreeBSD.org> | 2015-08-17 16:51:37 +0000 |
commit | 6ed8303443daf71658effa04d1ed040f1e208034 (patch) | |
tree | 1a3a9d68b8e9a45cd707dd6b3c9908585f3762a1 /sys/modules/gpio | |
parent | cd546a84a9ab88ad11d1d73322b8a468bfb586f3 (diff) | |
download | FreeBSD-src-6ed8303443daf71658effa04d1ed040f1e208034.zip FreeBSD-src-6ed8303443daf71658effa04d1ed040f1e208034.tar.gz |
Fix a few bugs when gpiobus is detaching:
- Detach the gpiobus and the gpioc devices from the GPIO controller.
- Fix the leak of gpiobus IRQ rman(9) region descriptor.
- Fix the leak of child ivars and IRQ resource list.
While here return NULL (instead of 0) for a device_t that fails to allocate
the ivar memory.
Tested with gpiobus built as a module.
Sponsored by: Rubicon Communications (Netgate)
Diffstat (limited to 'sys/modules/gpio')
0 files changed, 0 insertions, 0 deletions