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: <20250827123916.504189-1-rongqianfeng@vivo.com>
Date: Wed, 27 Aug 2025 20:39:08 +0800
From: Qianfeng Rong <rongqianfeng@...o.com>
To: Abylay Ospan <aospan@...zon.com>,
	Mauro Carvalho Chehab <mchehab@...nel.org>,
	Sakari Ailus <sakari.ailus@...ux.intel.com>,
	Jacopo Mondi <jacopo@...ndi.org>,
	Tomi Valkeinen <tomi.valkeinen@...asonboard.com>,
	Raspberry Pi Kernel Maintenance <kernel-list@...pberrypi.com>,
	Florian Fainelli <florian.fainelli@...adcom.com>,
	Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
	Hugues Fruchet <hugues.fruchet@...s.st.com>,
	Alain Volmat <alain.volmat@...s.st.com>,
	Maxime Coquelin <mcoquelin.stm32@...il.com>,
	Alexandre Torgue <alexandre.torgue@...s.st.com>,
	Sean Young <sean@...s.org>,
	Qianfeng Rong <rongqianfeng@...o.com>,
	linux-media@...r.kernel.org (open list:MEDIA DRIVERS FOR CXD2841ER),
	linux-kernel@...r.kernel.org (open list),
	linux-rpi-kernel@...ts.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE),
	linux-arm-kernel@...ts.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE),
	linux-stm32@...md-mailman.stormreply.com (moderated list:ARM/STM32 ARCHITECTURE)
Subject: [PATCH 0/5] media: use int type to store negative error codes

The 'ret' variable usually is used to store returns from some functions,
which return either zero on success or negative error codes on failure.

Storing the negative error codes in unsigned type, doesn't cause an issue
at runtime but it's ugly as pants.  Change "ret" from u8/u32/unsigned int
to int type.  No effect on runtime.

Qianfeng Rong (5):
  media: dvb: use int type to store negative error codes
  media: i2c: mt9v111: use int type to store negative error codes
  media: raspberrypi: use int type to store negative error codes
  media: stm32-dcmi: use int type to store negative error codes
  media: redrat3: use int type to store negative error codes

 drivers/media/dvb-frontends/cxd2841er.c           | 3 ++-
 drivers/media/dvb-frontends/lgdt330x.c            | 4 ++--
 drivers/media/i2c/mt9v111.c                       | 2 +-
 drivers/media/platform/raspberrypi/rp1-cfe/csi2.c | 2 +-
 drivers/media/platform/st/stm32/stm32-dcmi.c      | 4 ++--
 drivers/media/rc/redrat3.c                        | 2 +-
 6 files changed, 9 insertions(+), 8 deletions(-)

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ