On Fri, Mar 31, 2017 at 04:46:02PM +0200, Boszormenyi Zoltan wrote:
2017-03-31 14:49 keltezÃssel, Guenter Roeck Ãrta:
request_muxed_region() can fail, and literally every other driver
using it checks for that failure. Please do the same.
In what circumstances can request_muxed_region() fail? As far as
I can see, only if two drivers use the same I/O port base and the
already present region did not use IORESOURCE_MUXED which is
not the case here. When request_muxed_region() is used consistently,
subsequent requests are put on a wait queue and the first one is
woken up when the region is released. So, it's basically a mutex.
Am I missing something here?
Yes. failure to allocate the resource is one.