diff options
Diffstat (limited to 'kernel/relay.c')
-rw-r--r-- | kernel/relay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/relay.c b/kernel/relay.c index 01ab081ac53a..a0d200012adb 100644 --- a/kernel/relay.c +++ b/kernel/relay.c | |||
@@ -234,7 +234,6 @@ static void relay_destroy_buf(struct rchan_buf *buf) | |||
234 | static void relay_remove_buf(struct kref *kref) | 234 | static void relay_remove_buf(struct kref *kref) |
235 | { | 235 | { |
236 | struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref); | 236 | struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref); |
237 | buf->chan->cb->remove_buf_file(buf->dentry); | ||
238 | relay_destroy_buf(buf); | 237 | relay_destroy_buf(buf); |
239 | } | 238 | } |
240 | 239 | ||
@@ -484,6 +483,7 @@ static void relay_close_buf(struct rchan_buf *buf) | |||
484 | { | 483 | { |
485 | buf->finalized = 1; | 484 | buf->finalized = 1; |
486 | del_timer_sync(&buf->timer); | 485 | del_timer_sync(&buf->timer); |
486 | buf->chan->cb->remove_buf_file(buf->dentry); | ||
487 | kref_put(&buf->kref, relay_remove_buf); | 487 | kref_put(&buf->kref, relay_remove_buf); |
488 | } | 488 | } |
489 | 489 | ||