[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220330120246.25580-1-xiam0nd.tong@gmail.com>
Date: Wed, 30 Mar 2022 20:02:41 +0800
From: Xiaomeng Tong <xiam0nd.tong@...il.com>
To: patrik.r.jakobsson@...il.com, airlied@...ux.ie, daniel@...ll.ch
Cc: rob@...com, yakui.zhao@...el.com, airlied@...hat.com,
alan@...ux.intel.com, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
Xiaomeng Tong <xiam0nd.tong@...il.com>
Subject: [PATCH 0/5] fix missing break in list_or_each_entry
Instead of exiting the loop as expected when an entry is found, the
list_for_each_entry() continues until the traversal is complete. It
could lead to invalid reference or set 'is_*' flags mistakely.
To fix this, when an entry is found, add a break to exit the loop.
Xiaomeng Tong (5):
gma500: fix a missing break in oaktrail_crtc_mode_set
gma500: fix a missing break in cdv_intel_crtc_mode_set
gma500: fix a missing break in psb_intel_crtc_mode_set
gma500: fix a missing break in cdv_intel_dp_set_m_n
gma500: fix a missing break in psb_driver_load
drivers/gpu/drm/gma500/cdv_intel_display.c | 2 ++
drivers/gpu/drm/gma500/cdv_intel_dp.c | 2 ++
drivers/gpu/drm/gma500/oaktrail_crtc.c | 2 ++
drivers/gpu/drm/gma500/psb_drv.c | 2 ++
drivers/gpu/drm/gma500/psb_intel_display.c | 2 ++
5 files changed, 10 insertions(+)
--
2.17.1
Powered by blists - more mailing lists