summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/eba.c
diff options
context:
space:
mode:
authorFernando Luis Vázquez Cao <fernando@oss.ntt.co.jp>2007-07-11 10:11:45 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-07-18 15:58:45 +0200
commit2db61c95c03d08bb885c87a816540e75190c924a (patch)
tree1376072b9ed06ff51e35c50be6fec569ee7a3e61 /drivers/mtd/ubi/eba.c
parentUBI: fix overflow bug (diff)
downloadlinux-2db61c95c03d08bb885c87a816540e75190c924a.tar.xz
linux-2db61c95c03d08bb885c87a816540e75190c924a.zip
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/ubi/eba.c')
0 files changed, 0 insertions, 0 deletions