Re: staging:rtl8192u: Possible memory leak?

2018-09-26 Thread valdis . kletnieks
On Wed, 26 Sep 2018 16:52:03 +0100, John Whitmore said: > This might all be a mute point as I seem to remember someone saying > that memory allocation never fails in Linux and this can only happen > if the first two allocations work and the third fails. If memory allocation never fails, it would

staging:rtl8192u: Possible memory leak?

2018-09-26 Thread John Whitmore
I've been going through the rtl8192u driver in drivers/staging trying to get a better understanding of the code. It's possibly not the text book network driver but it seemed as good a place to start as any. So I'm looking at the allocation function in ieee80211_module.c: struct net_device