From: Fernando Luis Vázquez Cao Date: Wed, 11 Jul 2007 08:11:45 +0000 (+0900) Subject: UBI: cleanup usage of try_module_get X-Git-Tag: v2.6.23-rc1~495^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2db61c95c03d08bb885c87a816540e75190c924a;p=pandora-kernel.git 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 Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed