summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2025-09-14 16:23:59 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-02 13:35:40 +0200
commiteb9a6e8a805ce21e106835cb71f89fd89ce183c2 (patch)
tree389bc5730862bc9db275f0931aa4f61e4f3a8dbc /mm
parent15242e385f4a7ececbc8137517602d77df16aa20 (diff)
drm/i915/power: fix size for for_each_set_bit() in abox iteration
[ Upstream commit cfa7b7659757f8d0fc4914429efa90d0d2577dd7 ] for_each_set_bit() expects size to be in bits, not bytes. The abox mask iteration uses bytes, but it works by coincidence, because the local variable holding the mask is unsigned long, and the mask only ever has bit 2 as the highest bit. Using a smaller type could lead to subtle and very hard to track bugs. Fixes: 62afef2811e4 ("drm/i915/rkl: RKL uses ABOX0 for pixel transfers") Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Cc: stable@vger.kernel.org # v5.9+ Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://lore.kernel.org/r/20250905104149.1144751-1-jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com> (cherry picked from commit 7ea3baa6efe4bb93d11e1c0e6528b1468d7debf6) Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net> [ adapted struct intel_display *display parameters to struct drm_i915_private *dev_priv ] Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions