]> www.infradead.org Git - users/willy/xarray.git/commit
kernel/module: improve documentation for try_module_get()
authorMarco Pagani <marpagan@redhat.com>
Thu, 21 Dec 2023 16:58:47 +0000 (17:58 +0100)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 21 Dec 2023 18:26:14 +0000 (10:26 -0800)
commit4515d08a742c76612b65d2f47a87d12860519842
tree6ded247605b964cb1616ec6c96895dd762cade9d
parentf17f2c13d613cbeef529b03ca17ae2581b2e6cb8
kernel/module: improve documentation for try_module_get()

The sentence "this call will fail if the module is already being
removed" is potentially confusing and may contradict the rest of the
documentation. If one tries to get a module that has already been
removed using a stale pointer, the kernel will crash.

Signed-off-by: Marco Pagani <marpagan@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
include/linux/module.h