projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
locking/atomic, kref: Add kref_read()
[linux-2.6-block.git]
/
drivers
/
staging
/
comedi
/
comedi_buf.c
diff --git
a/drivers/staging/comedi/comedi_buf.c
b/drivers/staging/comedi/comedi_buf.c
index c7d7682b1412ba7b7cc8730a363b84aeed493adc..1e1df89b50181e97a6df0fbed0d6ba54c01439a2 100644
(file)
--- a/
drivers/staging/comedi/comedi_buf.c
+++ b/
drivers/staging/comedi/comedi_buf.c
@@
-188,7
+188,7
@@
bool comedi_buf_is_mmapped(struct comedi_subdevice *s)
{
struct comedi_buf_map *bm = s->async->buf_map;
- return bm && (
atomic_read(&bm->refcount.
refcount) > 1);
+ return bm && (
kref_read(&bm->
refcount) > 1);
}
int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,