Staging: comedi: Replace wrapper function
PATCH 3/7 Staging: comedi: Replace wrapper function
Replace wrapper function "comedi_buf_map_get" reference as part of remove all wrappers in drivers/staging/comedi/TODO, with the wrapped code
Signed-off-by Evan Chime <[email protected]>
--- drivers/staging/comedi/comedi_fops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/comedi/comedi_fops.c +2 -1
@@ -2263,7 +2263,8 @@ static void comedi_vm_open(struct vm_area_struct *area)struct comedi_buf_map *bm; bm = area->vm_private_data; -comedi_buf_map_get (bm); +if (bm) +kref_get (&bm->refcount); }static void comedi_vm_close (struct vm_area_struct *area)
Signature · 1 line
2.17.1