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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.58.0805012003020.7954@gandalf.stny.rr.com>
Date:	Thu, 1 May 2008 20:04:25 -0400 (EDT)
From:	Steven Rostedt <rostedt@...dmis.org>
To:	LKML <linux-kernel@...r.kernel.org>
cc:	akpm@...dmis.org, rbultje@...ald.bitfreak.net
Subject: [PATCH] use unsigned long for zoran_driver


My typecheck flags patch flagged the zoran_driver.c as having an incompatible
flags for spin_lock_irqsave. This isn't really true since "long" was used.
But since the convention is to use "unsigned long" this is a clean up
patch to make the zoran_driver conform to the rest of the kernel.

Signed-off-by: Steven Rostedt <srostedt@...hat.com>
---
 drivers/media/video/zoran_driver.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-compile.git/drivers/media/video/zoran_driver.c
===================================================================
--- linux-compile.git.orig/drivers/media/video/zoran_driver.c	2008-05-01 16:58:39.000000000 -0400
+++ linux-compile.git/drivers/media/video/zoran_driver.c	2008-05-01 19:58:19.000000000 -0400
@@ -1167,7 +1167,7 @@ zoran_close_end_session (struct file *fi

 	/* v4l capture */
 	if (fh->v4l_buffers.active != ZORAN_FREE) {
-		long flags;
+		unsigned long flags;

 		spin_lock_irqsave(&zr->spinlock, flags);
 		zr36057_set_memgrab(zr, 0);
@@ -3436,7 +3436,7 @@ zoran_do_ioctl (struct inode *inode,

 			/* unload capture */
 			if (zr->v4l_memgrab_active) {
-				long flags;
+				unsigned long flags;

 				spin_lock_irqsave(&zr->spinlock, flags);
 				zr36057_set_memgrab(zr, 0);
@@ -4375,7 +4375,7 @@ zoran_vm_close (struct vm_area_struct *v
 				mutex_lock(&zr->resource_lock);

 				if (fh->v4l_buffers.active != ZORAN_FREE) {
-					long flags;
+					unsigned long flags;

 					spin_lock_irqsave(&zr->spinlock, flags);
 					zr36057_set_memgrab(zr, 0);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ