summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/build.c
diff options
context:
space:
mode:
authorFernando Luis Vázquez Cao <fernando@oss.ntt.co.jp>2007-07-11 17:11:45 +0900
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-07-18 16:58:45 +0300
commit2db61c95c03d08bb885c87a816540e75190c924a (patch)
tree1376072b9ed06ff51e35c50be6fec569ee7a3e61 /drivers/mtd/ubi/build.c
parentd08c3b78b8c46a01b8fa59037a0d9fbb777fb465 (diff)
downloadop-kernel-dev-2db61c95c03d08bb885c87a816540e75190c924a.zip
op-kernel-dev-2db61c95c03d08bb885c87a816540e75190c924a.tar.gz
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/build.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud