USB helpers and other misc fixes
Use-after-free fixes in the elan driver, memory leaks, typos, home-made MIN() implementations, amongst others.
Use-after-free fixes in the elan driver, memory leaks, typos, home-made MIN() implementations, amongst others.