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-next>] [day] [month] [year] [list]
Message-ID: <13378f5c9cafc29425b6e420cad8b513f4a9f1e1.1757095005.git.joeypabalinas@gmail.com>
Date: Fri, 5 Sep 2025 07:59:40 -1000
From: Joey Pabalinas <joeypabalinas@...il.com>
To: Phillip Potter <phil@...lpotter.co.uk>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] cdrom: add parentheses around macro arguments

Signed-off-by: Joey Pabalinas <joeypabalinas@...il.com>
---
 drivers/cdrom/cdrom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index 31ba1f8c1f7865dc99..462ee74621da6f32da 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -408,11 +408,11 @@ static int cdrom_get_disc_info(struct cdrom_device_info *cdi,
  * hack to have the capability flags defined const, while we can still
  * change it here without gcc complaining at every line.
  */
 #define ENSURE(cdo, call, bits)					\
 do {								\
-	if (cdo->call == NULL)					\
+	if ((cdo)->(call) == NULL)				\
 		WARN_ON_ONCE((cdo)->capability & (bits));	\
 } while (0)
 
 /*
  * the first prototypes used 0x2c as the page code for the mrw mode page,
-- 
Cheers,
Joey Pabalinas


Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ