lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b83f53e7bffcc7de692c2e478e083928@kernel.org>
Date: Mon, 25 Nov 2024 09:13:59 +0000
From: "Maxime Ripard" <mripard@...nel.org>
To: "Dmitry Baryshkov" <dmitry.baryshkov@...aro.org>
Cc: dri-devel@...ts.freedesktop.org, linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org, linux-sunxi@...ts.linux.dev, "Andrzej
 Hajda" <andrzej.hajda@...el.com>, "Chen-Yu Tsai" <wens@...e.org>, "Dave
 Stevenson" <dave.stevenson@...pberrypi.com>, "David Airlie" <airlied@...il.com>, "Jernej
 Skrabec" <jernej.skrabec@...il.com>, "Jonas Karlman" <jonas@...boo.se>, "Laurent
 Pinchart" <Laurent.pinchart@...asonboard.com>, "Maarten Lankhorst" <maarten.lankhorst@...ux.intel.com>, "Maxime
 Ripard" <mripard@...nel.org>, MaĆ­ra Canal <mcanal@...lia.com>, "Neil
 Armstrong" <neil.armstrong@...aro.org>, "Raspberry Pi Kernel Maintenance" <kernel-list@...pberrypi.com>, "Robert
 Foss" <rfoss@...nel.org>, "Samuel Holland" <samuel@...lland.org>, "Simona
 Vetter" <simona@...ll.ch>, "Thomas Zimmermann" <tzimmermann@...e.de>
Subject: Re: [PATCH v4 01/10] drm/tests: hdmi: handle empty modes in
 find_preferred_mode()

On Fri, 22 Nov 2024 11:12:57 +0200, Dmitry Baryshkov wrote:
> If the connector->modes list is empty, then list_first_entry() returns a
> bogus entry. Change that to use list_first_entry_or_null().
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>

Reviewed-by: Maxime Ripard <mripard@...nel.org>

Thanks!
Maxime

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ