summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>2025-04-03 12:47:37 +0200
committerChun-Kuang Hu <chunkuang.hu@kernel.org>2025-05-14 23:01:52 +0000
commit22918591fb747a6d16801e74a170cf98e886f83b (patch)
treec74e4bf557a48efffb329709e6564b8dcdaba7cf /tools/perf/scripts/python/bin
parent587f6ac1f5b6d37c1891229446a7065f981a1c3b (diff)
downloadkernel-22918591fb747a6d16801e74a170cf98e886f83b.tar.gz
drm/mediatek: mtk_drm_drv: Fix kobject put for mtk_mutex device ptr
This driver is taking a kobject for mtk_mutex only once per mmsys device for each drm-mediatek driver instance, differently from the behavior with other components, but it is decrementing the kobj's refcount in a loop and once per mmsys: this is not right and will result in a refcount_t underflow warning when mediatek-drm returns multiple probe deferrals in one boot (or when manually bound and unbound). Besides that, the refcount for mutex_dev was not decremented for error cases in mtk_drm_bind(), causing another refcount_t warning but this time for overflow, when the failure happens not during driver bind but during component bind. In order to fix one of the reasons why this is happening, remove the put_device(xx->mutex_dev) loop from the mtk_drm_kms_init()'s put_mutex_dev label (and drop the label) and add a single call to correctly free the single incremented refcount of mutex_dev to the mtk_drm_unbind() function to fix the refcount_t underflow. Moreover, add the same call to the error cases in mtk_drm_bind() to fix the refcount_t overflow. Fixes: 1ef7ed48356c ("drm/mediatek: Modify mediatek-drm for mt8195 multi mmsys support") Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://patchwork.kernel.org/project/dri-devel/patch/20250403104741.71045-2-angelogioacchino.delregno@collabora.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
2: add register access error checksAkinobu Mita 2016-03-14rtc: ds3232: fix read on /dev/rtc after RTC_AIE_ONAkinobu Mita 2016-03-14rtc: merge ds3232 and ds3234Akinobu Mita 2016-03-14rtc: ds3232: convert to use regmapAkinobu Mita 2015-09-05rtc: ds3232: fix WARNING trace in resume functionWang Dongsheng 2015-09-05rtc: fix drivers that consider 0 as a valid IRQ in client->irqOctavian Purdila 2015-09-05rtc: Drop owner assignment from i2c_driverKrzysztof Kozlowski 2015-04-17rtc: use more standard kernel logging stylesJoe Perches 2014-04-03drivers/rtc/rtc-ds3232.c: enable ds3232 to work as wakeup sourceWang Dongsheng 2014-04-03drivers/rtc/rtc-ds3232.c: make it possible to share an irqBharat Bhushan 2014-04-03rtc: fix potential race conditionAlessandro Zummo 2013-04-29drivers/rtc/rtc-ds3232.c: use devm_* APIsSachin Kamat 2013-01-03Drivers: rtc: remove __dev* attributes.Greg Kroah-Hartman 2012-03-23rtc: convert rtc i2c drivers to module_i2c_driverAxel Lin 2011-03-09RTC: Cleanup rtc_class_ops->update_irq_enable()John Stultz 2011-02-25drivers/rtc/rtc-ds3232.c: fix time range difference between linux and RTC chipLei Xu 2010-12-24rtc: don't use flush_scheduled_work()Tejun Heo 2010-10-27drivers/rtc/rtc-ds3232.c: add alarm functionLan Chunhe-B25806 2010-09-30i2c: Remove obsolete cleanup for clientdataWolfram Sang 2010-08-11rtc: add support for DS3232 RTCRoy Zang