lkml.org 
[lkml]   [2010]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] slow-work: use get_ref wrapper instead of directly calling get_ref
Date
Otherwise we can get an oops if the user has no get_ref/put_ref
requirement.

Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
kernel/slow-work.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/slow-work.c b/kernel/slow-work.c
index 7494bbf..7d3f4fa 100644
--- a/kernel/slow-work.c
+++ b/kernel/slow-work.c
@@ -637,7 +637,7 @@ int delayed_slow_work_enqueue(struct delayed_slow_work *dwork,
goto cancelled;

/* the timer holds a reference whilst it is pending */
- ret = work->ops->get_ref(work);
+ ret = slow_work_get_ref(work);
if (ret < 0)
goto cant_get_ref;

--
1.6.5.2


\
 
 \ /
  Last update: 2010-03-29 08:55    [W:0.853 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site