diff options
author | Fernando Luis Vázquez Cao <fernando@oss.ntt.co.jp> | 2007-07-11 17:11:45 +0900 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-07-18 16:58:45 +0300 |
commit | 2db61c95c03d08bb885c87a816540e75190c924a (patch) | |
tree | 1376072b9ed06ff51e35c50be6fec569ee7a3e61 /drivers/mtd/ftl.c | |
parent | d08c3b78b8c46a01b8fa59037a0d9fbb777fb465 (diff) |
UBI: cleanup usage of try_module_get
The use of try_module_get(THIS_MODULE) in ubi_get_device_info does not
offer real protection against unexpected driver unloads, since we could
be preempted before try_modules_get gets executed. It is the caller who
should manipulate the refcounts. Besides, ubi_get_device_info is an
exported symbol which guarantees protection when accessed through
symbol_get.
Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ftl.c')
0 files changed, 0 insertions, 0 deletions