login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
July
»
11
Re: [PATCH RFC] try_module_get usage
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Rusty Russell
Subject:
Re: [PATCH RFC] try_module_get usage
Date: Wednesday, July 11, 2007 - 3:18 am
On Wed, 2007-07-11 at 16:55 +0900, Fernando Luis Vázquez Cao wrote:
quoted text
> I keep seeing uses of try_module_get(THIS_MODULE) which seem to mimic > the behavior of the former MOD_INC_USE_COUNT. The UBI driver is one > example: > > int ubi_get_device_info(int ubi_num, struct ubi_device_info *di) > { > const struct ubi_device *ubi; > > if (!try_module_get(THIS_MODULE)) > return -ENODEV;
Yes, this code is wrong. Thanks, Rusty. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH RFC] try_module_get usage
, Fernando Luis
, (Wed Jul 11, 12:55 am)
[PATCH] UBI: cleanup usage of try_module_get
, Fernando Luis
, (Wed Jul 11, 1:11 am)
Re: [PATCH] UBI: cleanup usage of try_module_get
, Artem Bityutskiy
, (Wed Jul 11, 2:17 am)
Re: [PATCH RFC] try_module_get usage
, Christoph Hellwig
, (Wed Jul 11, 2:41 am)
Re: [PATCH RFC] try_module_get usage
, Artem Bityutskiy
, (Wed Jul 11, 3:01 am)
Re: [PATCH RFC] try_module_get usage
, Rusty Russell
, (Wed Jul 11, 3:18 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mathieu Desnoyers
[PATCH 01/10] local_t : architecture independant extension
Ingo Molnar
Re: 2.6.20-rc6-mm3
monstr
[PATCH 46/56] microblaze_v2: headers files entry.h current.h mman.h registers.h se...
alan
Re: Versioning file system
Jan Engelhardt
Re: Linux Security *Module* Framework (Was: LSM conversion to static interface)
git
:
Andy Parkins
git-fetch fails with error code 128
Johannes Sixt
Re: [PATCH v2 04/13] Teach rebase interactive the mark command
Yakov Lerner
Re: Autoconf/Automake
Miklos Vajna
Re: [IRC/patches] Failed octopus merge does not clean up
Johannes Sixt
Re: [msysGit] [PATCH 01/12] Fake reencoding success under NO_ICONV instead of retu...
linux-netdev
:
jamal
[net-next-2.6 PATCH 1/7] xfrm: introduce basic mark infrastructure
jamal
[net-next-2.6 PATCH 0/7] xfrm by MARK
Timo Teräs
ip xfrm policy semantics
Jeff Garzik
Re: [PATCH 1/5] sky2: phy setup changes
Ken-ichirou MATSUZAWA
Re: [PATCH] don't touch bridge sysfs in container.
git-commits-head
:
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
V4L/DVB (13840): smsusb: Add ISDB-T firmware for Hauppauge WinTV-Nova-T-MiniStick
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
openbsd-misc
:
Marco Peereboom
Re: Defending OpenBSD Performance
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Damon Schultz
Routing iTunes sharing across subnets using OpenBSD
Ashraf Cotu
Je sur comptable a la banque BCB je vais virée $6.million a la etranger
Chris Black
Re: carp, 2 router
Colocation donated by:
Syndicate