diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-25 13:08:40 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 01:00:41 -0800 |
commit | dfe925e8e9058c8af0d203ae7262437235623a68 (patch) | |
tree | 394e6c445d15e1d71edab15287cbf1b03b0a0b79 | |
parent | fe17f84f5f2a7d6c1a31c04c06a016d4ad5f7dec (diff) | |
download | kernel_samsung_smdk4412-dfe925e8e9058c8af0d203ae7262437235623a68.zip kernel_samsung_smdk4412-dfe925e8e9058c8af0d203ae7262437235623a68.tar.gz kernel_samsung_smdk4412-dfe925e8e9058c8af0d203ae7262437235623a68.tar.bz2 |
drivers/isdn/capi: fix sparse warning: context imbalance
Impact: Attribute functions with __acquires(...) resp. __releases(...).
Fix this sparse warnings:
drivers/isdn/capi/kcapi_proc.c:241:13: warning: context imbalance in 'capi_driver_start' - wrong count at exit
drivers/isdn/capi/kcapi_proc.c:252:13: warning: context imbalance in 'capi_driver_stop' - unexpected unlock
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/isdn/capi/kcapi_proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/isdn/capi/kcapi_proc.c b/drivers/isdn/capi/kcapi_proc.c index c29208b..50ed778 100644 --- a/drivers/isdn/capi/kcapi_proc.c +++ b/drivers/isdn/capi/kcapi_proc.c @@ -239,6 +239,7 @@ static const struct file_operations proc_applstats_ops = { // --------------------------------------------------------------------------- static void *capi_driver_start(struct seq_file *seq, loff_t *pos) + __acquires(&capi_drivers_list_lock) { read_lock(&capi_drivers_list_lock); return seq_list_start(&capi_drivers, *pos); @@ -250,6 +251,7 @@ static void *capi_driver_next(struct seq_file *seq, void *v, loff_t *pos) } static void capi_driver_stop(struct seq_file *seq, void *v) + __releases(&capi_drivers_list_lock) { read_unlock(&capi_drivers_list_lock); } |