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>] [day] [month] [year] [list]
Date:	Tue, 07 Jul 2009 11:47:23 +0100
From:	Catalin Marinas <catalin.marinas@....com>
To:	Russell King <rmk+kernel@....linux.org.uk>
Cc:	Paul Mundt <lethal@...ux-sh.org>, linux-kernel@...r.kernel.org
Subject: [PATCH] Initialise the struct fb_info mutexes in clcdfb_register()

Commit 4148df9b0 moved the fb_info.lock and fb_info.mm_lock mutex
initialisation from register_framebuffer() to framebuffer_alloc().
However, the AMBA CLCD driver wraps the struct fb_info in the clcd_fb
structure, the latter being allocated with kzalloc.

Signed-off-by: Catalin Marinas <catalin.marinas@....com>
Cc: Russell King <rmk+kernel@....linux.org.uk>
Cc: Paul Mundt <lethal@...ux-sh.org>
---
 drivers/video/amba-clcd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c
index fb8163d..d5848aa 100644
--- a/drivers/video/amba-clcd.c
+++ b/drivers/video/amba-clcd.c
@@ -360,6 +360,9 @@ static int clcdfb_register(struct clcd_fb *fb)
 		goto free_clk;
 	}
 
+	mutex_init(&fb->fb.lock);
+	mutex_init(&fb->fb.mm_lock);
+
 	fb->fb.fbops		= &clcdfb_ops;
 	fb->fb.flags		= FBINFO_FLAG_DEFAULT;
 	fb->fb.pseudo_palette	= fb->cmap;

--
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