request_region
Some files scan a IO range for request_region and that same range is released when the module unloads. Is it necessary to check those functions on return values?
Richard
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 3 lines · Richard
Some files scan a IO range for
request_regionand that same range is released when the module unloads. Is it necessary to check those functions on return values?
Yes. request_region() can fail, and if it does the code needs to deal with the error in a sane way.
Signature · 7 lines
Jesper Juhl <[email protected]> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html _______________________________________________ Kernel-janitors mailing list [email protected] https://lists.osdl.org/mailman/listinfo/kernel-janitors