[PATCH -next] binder: change error code from postive to negative in binder_transaction

2020-10-26 Thread Zhang Qilong
Depending on the context, the error return value here (extra_buffers_size < added_size) should be negative. Signed-off-by: Zhang Qilong --- drivers/android/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c in

[PATCH -next] vme: remove unnecessary breaks

2020-10-26 Thread Zhang Qilong
The 'break' is unnecessary because of previous 'return', discard it. Signed-off-by: Zhang Qilong --- drivers/vme/vme.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/vme/vme.c b/drivers/vme/vme.c index b398293980b6..e1a940e43327 100644 --- a/drivers/vme

[PATCH -next] staging: rtl8192u: fix wrong judgement in rtl8192_rx_isr

2020-10-28 Thread Zhang Qilong
;usb_hcd_link_urb_to_ep Signed-off-by: Zhang Qilong --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 27dc181c4c9b..93676af98629 100644 --- a/driver

[PATCH -next] media: cedrus: fix reference leak in cedrus_start_streaming

2020-11-02 Thread Zhang Qilong
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in cedrus_start_streaming. We should fix it. Fixes: d5aecd289babf ("media: cedrus: Implement runtime PM") Signed-off-by: Zhang Qilong --- drivers/sta

[PATCH -next] media: staging: rkisp1: cap: fix runtime PM imbalance on error

2020-11-02 Thread Zhang Qilong
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference imbalance in rkisp1_vb2_start_streaming, so we should fix it. Fixes: 56e3b29f9f6b2 ("media: staging: rkisp1: add streaming paths") Signed-off-by: Zh

[PATCH 1/2] staging: greybus: codecs: Fix reference counter leak in error handling

2020-11-09 Thread Zhang Qilong
te pm runtime support in dai_ops callback") Signed-off-by: Zhang Qilong --- drivers/staging/greybus/audio_codec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c index 17a39ed63769..b589cf6b1d03 100644 --- a/drive

[PATCH 0/2] Fix reference counter leak in error banch

2020-11-09 Thread Zhang Qilong
There are two reference counter leaks in greybus moduler refer to gb_pm_runtime_get_sync, and we fixed it. Zhang Qilong (2): staging: greybus: codecs: Fix reference counter leak in error handling greybus: audio: apbridgea: Fix reference counter leak in error handling drivers/staging

[PATCH 2/2] greybus: audio: apbridgea: Fix reference counter leak in error handling

2020-11-09 Thread Zhang Qilong
gb_pm_runtime_put_autosuspend ot decrease usage counter for balabce preventing reference leak. And we fixed it by add gb_pm_runtime_put_autosuspend when gb_hd_output failed. Fixes: 6ba7fad430d63 ("Add runtime pm support to audio protocol device class driver.") Signed-off-by: Zh

[PATCH v2 2/2] greybus: audio: apbridgea: Fix reference counter leak in error handling

2020-11-13 Thread Zhang Qilong
gb_pm_runtime_put_autosuspend ot decrease usage counter for balabce preventing reference leak. And we fixed it by add gb_pm_runtime_put_autosuspend when gb_hd_output failed. Fixes: 6ba7fad430d63 ("greybus: audio: add runtime pm support") Signed-off-by: Zhang Qilong --- Changelog: v2 - fi