drm/i915: Free write_buf that we allocated with kzalloc.
Subsystems (3)
Rodrigo Vivi
maintainerPATCH 1/1 drm/i915: Free write_buf that we allocated with kzalloc.
We use kzalloc to allocate the write_buf that we use for i2c transfer on hdcp write. But it seems that we are forgetting to free the memory that is not needed after i2c transfer is completed.
--- drivers/gpu/drm/i915/intel_hdmi.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_hdmi.c +6 -2
@@ -943,8 +943,12 @@ static int intel_hdmi_hdcp_write(struct intel_digital_port *intel_dig_port, ret =i2c_transfer (adapter, &msg,1 );if (ret ==1 ) -return 0 ; -return ret >=0 ? -EIO : ret; + ret =0 ; +else if (ret >=0 ) + ret = -EIO ; + +kfree (write_buf); +return ret; } static
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Free write_buf that we allocated with kzalloc.
== Series Details ==
== Series Details ==
Series: drm/i915: Free write_buf that we allocated with kzalloc.
URL : https://patchwork.freedesktop.org/series/48642/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4702 -> Patchwork_10001 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/48642/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_10001:
=== IGT changes ===
==== Warnings ====
{igt@pm_rpm@module-reload}:
fi-byt-n2820: DMESG-FAIL -> DMESG-WARN== Known issues ==
Here are the changes found in Patchwork_10001 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_frontbuffer_tracking@basic:
fi-hsw-peppy: PASS -> DMESG-FAIL (fdo#102614)
{fi-byt-clapper}: PASS -> FAIL (fdo#103167)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
{fi-byt-clapper}: PASS -> FAIL (fdo#107362, fdo#103191) {name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
fdo#102614 https://bugs.freedesktop.org/show_bug.cgi?id=102614
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
== Participating hosts (53 -> 48) ==
Missing (5): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u
== Build changes ==
* Linux: CI_DRM_4702 -> Patchwork_10001
CI_DRM_4702: 0349bfb08204a6b44f16551c2be3b58563ff73d2 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4608: 94ebd21177feedf03e8f6dd1e73dca1a6ec7a0ac @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10001: e6dbb40685d5383083f6d66c1bd3df591a969639 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
e6dbb40685d5 drm/i915: Free write_buf that we allocated with kzalloc.
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10001/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: Free write_buf that we allocated with kzalloc.
In reply to Rodrigo Vivi== Series Details ==
== Series Details ==
Series: drm/i915: Free write_buf that we allocated with kzalloc.
URL : https://patchwork.freedesktop.org/series/48642/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4702_full -> Patchwork_10001_full =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_10001_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_10001_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_10001_full:
=== IGT changes ===
==== Warnings ====
igt@kms_chv_cursor_fail@pipe-b-128x128-left-edge:
shard-snb: PASS -> SKIP +5
igt@kms_cursor_legacy@cursorb-vs-flipa-toggle:
shard-hsw: SKIP -> PASS== Known issues ==
Here are the changes found in Patchwork_10001_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_ctx_isolation@vcs1-s3:
shard-kbl: PASS -> INCOMPLETE (fdo#103665)
igt@gem_exec_await@wide-contexts:
shard-apl: PASS -> FAIL (fdo#105900, fdo#106680)
igt@gem_ppgtt@blt-vs-render-ctxn:
shard-kbl: PASS -> INCOMPLETE (fdo#106023, fdo#103665)
igt@pm_rpm@system-suspend:
shard-kbl: PASS -> INCOMPLETE (fdo#103665, fdo#107556)
==== Possible fixes ====
igt@drv_selftest@live_hangcheck:
shard-apl: DMESG-FAIL (fdo#106560, fdo#106947) -> PASS
igt@kms_flip@flip-vs-expired-vblank-interruptible:
shard-glk: FAIL (fdo#105363) -> PASS fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105900 https://bugs.freedesktop.org/show_bug.cgi?id=105900
fdo#106023 https://bugs.freedesktop.org/show_bug.cgi?id=106023
fdo#106560 https://bugs.freedesktop.org/show_bug.cgi?id=106560
fdo#106680 https://bugs.freedesktop.org/show_bug.cgi?id=106680
fdo#106947 https://bugs.freedesktop.org/show_bug.cgi?id=106947
fdo#107556 https://bugs.freedesktop.org/show_bug.cgi?id=107556
== Participating hosts (5 -> 5) ==
No changes in participating hosts
== Build changes ==
* Linux: CI_DRM_4702 -> Patchwork_10001
CI_DRM_4702: 0349bfb08204a6b44f16551c2be3b58563ff73d2 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4608: 94ebd21177feedf03e8f6dd1e73dca1a6ec7a0ac @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10001: e6dbb40685d5383083f6d66c1bd3df591a969639 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10001/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Rodrigo Vivi (2018-08-23 21:51:36)
Quoted 5 lines
We use kzalloc to allocate the
write_bufthat we use for i2c transfer on hdcp write. But it seems that we are forgetting to free the memory that is not needed after i2c transfer is completed.
Quoted 8 lines
Reported-by Brian J Wood <[email protected]>Fixes 2320175feb74 ("drm/i915: Implement HDCP for HDMI")Cc Ramalingam C <[email protected]>Cc Sean Paul <[email protected]>Cc Jani Nikula <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc <[email protected]> # v4.17+Signed-off-by Rodrigo Vivi <[email protected]>
-Chris
Rodrigo Vivi
maintainerQuoted 14 lines · Chris Wilson
Quoting Rodrigo Vivi (2018-08-23 21:51:36)
Quoted 5 lines
We use kzalloc to allocate the
write_bufthat we use for i2c transfer on hdcp write. But it seems that we are forgetting to free the memory that is not needed after i2c transfer is completed.Quoted 8 lines
Reported-by Brian J Wood <[email protected]>Fixes 2320175feb74 ("drm/i915: Implement HDCP for HDMI")Cc Ramalingam C <[email protected]>Cc Sean Paul <[email protected]>Cc Jani Nikula <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc <[email protected]> # v4.17+Signed-off-by Rodrigo Vivi <[email protected]>
Quoted 1 line
Reviewed-by Chris Wilson <[email protected]>
thanks. pushed to dinq.
Quoted 5 lines
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx