[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20100329110150.14738.2830.stgit@warthog.procyon.org.uk>
Date: Mon, 29 Mar 2010 12:01:50 +0100
From: David Howells <dhowells@...hat.com>
To: torvalds@...l.org, akpm@...ux-foundation.org
Cc: linux-cachefs@...hat.com, linux-kernel@...r.kernel.org,
Dave Airlie <airlied@...hat.com>,
David Howells <dhowells@...hat.com>
Subject: [PATCH] slow-work: use get_ref wrapper instead of directly calling
get_ref
From: Dave Airlie <airlied@...hat.com>
Otherwise we can get an oops if the user has no get_ref/put_ref
requirement.
Signed-off-by: Dave Airlie <airlied@...hat.com>
Signed-off-by: David Howells <dhowells@...hat.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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists