Skip to contentSkip to conversation

dma-buf: balance refcount inbalance

PATCH In review [email protected] 3 participants 3 messages Dec 6, 2018 – Dec 7, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma-buf: balance refcount inbalance

From: Jérôme Glisse <[email protected]>

The debugfs take reference on fence without dropping them.

---
 drivers/dma-buf/dma-buf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma-buf/dma-buf.c +1 -0
index 13884474d158..69842145c223 100644
@@ -1069,6 +1069,7 @@ static int dma_buf_debug_show(struct seq_file *s, void *unused)
 				   fence->ops->get_driver_name(fence),
 				   fence->ops->get_timeline_name(fence),
 				   dma_fence_is_signaled(fence) ? "" : "un");
+			dma_fence_put(fence);
 		}
 		rcu_read_unlock();
 
Signature · 1 line
2.17.2
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 06.12.18 um 17:18 schrieb [email protected]:

Quoted 4 lines

From: Jérôme Glisse <[email protected]>

The debugfs take reference on fence without dropping them.

Quoted 9 lines
Quoted 16 lines
---
  drivers/dma-buf/dma-buf.c | 1 +
  1 file changed, 1 insertion(+)
drivers/dma-buf/dma-buf.c +1 -0
index 13884474d158..69842145c223 100644
@@ -1069,6 +1069,7 @@ static int dma_buf_debug_show(struct seq_file *s, void *unused)
  				   fence->ops->get_driver_name(fence),
  				   fence->ops->get_timeline_name(fence),
  				   dma_fence_is_signaled(fence) ? "" : "un");
+			dma_fence_put(fence);
  		}
  		rcu_read_unlock();
 
maintainer
#2 lore raw
In reply to [email protected]

Hi,

[This is an automated email]

This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all

The bot has tested the following trees: v4.19.7, v4.14.86, v4.9.143, v4.4.166, v3.18.128,

v4.19.7: Build OK!
v4.14.86: Build OK!
v4.9.143: Failed to apply! Possible dependencies:

    5eb2c72c8acc ("dma-buf: fence debugging")

v4.4.166: Failed to apply! Possible dependencies:

    5eb2c72c8acc ("dma-buf: fence debugging")

v3.18.128: Failed to apply! Possible dependencies:

    5eb2c72c8acc ("dma-buf: fence debugging")

How should we proceed with this patch?

--
Thanks,
Sasha
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel