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: <1463275565-19956-1-git-send-email-illusionist.neo@gmail.com>
Date:	Sun, 15 May 2016 06:56:05 +0530
From:	Shubham Bansal <illusionist.neo@...il.com>
To:	gregkh@...uxfoundation.org, arve@...roid.com,
	riandrews@...roid.com, labbott@...hat.com, daniel.vetter@...ll.ch,
	rohit.kr@...sung.com, gioh.kim@....com, Liviu.Dudau@....com,
	paul.gortmaker@...driver.com, dmitry.kalinkin@...il.com,
	chris@...is-wilson.co.uk, neilzhang1123@...mail.com,
	eun.taik.lee@...sung.com, sriram@...irs.net.in,
	tiago.vignatti@...el.com
Cc:	devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] Staging: android: ion: fixed a kzalloc coding style issue.

Fixed a coding style issue. Issue reported by checkpatch.pl.

Signed-off-by: Shubham Bansal <illusionist.neo@...il.com>
---
 drivers/staging/android/ion/ion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c
index 8536567..2217ccb 100644
--- a/drivers/staging/android/ion/ion.c
+++ b/drivers/staging/android/ion/ion.c
@@ -184,7 +184,7 @@ static struct ion_buffer *ion_buffer_create(struct ion_heap *heap,
 	struct scatterlist *sg;
 	int i, ret;
 
-	buffer = kzalloc(sizeof(struct ion_buffer), GFP_KERNEL);
+	buffer = kzalloc(sizeof(*buffer), GFP_KERNEL);
 	if (!buffer)
 		return ERR_PTR(-ENOMEM);
 
-- 
2.1.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ