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
| ||
|
Date: Tue, 8 Apr 2014 21:35:02 +0800 From: Jimmy Li <coder.liss@...il.com> To: Dan Carpenter <dan.carpenter@...cle.com>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Teodora Baluta <teobaluta@...il.com>, Joe Perches <joe@...ches.com>, Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@...el.com>, Michael Gunselmann <michael.gunselmann@...dium.uni-erlangen.de>, Lisa Nguyen <lisa@...apiadmin.com>, Martin Hofmann <martin.hofmann@...dium.uni-erlangen.de>, Malcolm Priestley <tvboxspy@...il.com>, =?us-ascii?B?PT91cy1hc2NpaT9RPz0zRD0zRnV0Zi04PTNGQj0zRlZNTzhiR2x1SU1T?= =?us-ascii?B?d2VtVnk9M0Y9M0Q/PQ==?= <tulinizer@...il.com>, Archana kumari <archanakumari959@...il.com> Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org Subject: [PATCH v5] Staging: vt6655: iwctl.c: fix a sparse warning fix a sparse warning and do some clean up. iwctl.c:1846:35: expected restricted gfp_t [usertype] flags Signed-off-by: Jimmy Li <coder.liss@...il.com> --- v1 fix a sparse warning. v2 clear up two unnecessary variable, buf and blen. v3 fix patch format. v4 fix patch format again. v5 make sizeof operator more clear, and fix patch format. drivers/staging/vt6655/iwctl.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/vt6655/iwctl.c b/drivers/staging/vt6655/iwctl.c index ac3fc16..394031b 100644 --- a/drivers/staging/vt6655/iwctl.c +++ b/drivers/staging/vt6655/iwctl.c @@ -1835,19 +1835,14 @@ int iwctl_siwencodeext(struct net_device *dev, size_t seq_len = 0, key_len = 0; // // int ii; - u8 *buf; - size_t blen; u8 key_array[64]; int ret = 0; PRINT_K("SIOCSIWENCODEEXT...... \n"); - blen = sizeof(*param); - buf = kmalloc((int)blen, (int)GFP_KERNEL); - if (buf == NULL) + param = kzalloc(sizeof(*param), GFP_KERNEL); + if (param == NULL) return -ENOMEM; - memset(buf, 0, blen); - param = (struct viawget_wpa_param *)buf; //recover alg_name switch (ext->alg) { -- 1.7.9.5 -- 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