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:	Thu, 14 Dec 2006 02:30:55 -0500 (EST)
From:	"Robert P. J. Day" <rpjday@...dspring.com>
To:	Linux kernel mailing list <linux-kernel@...r.kernel.org>
cc:	trivial@...nel.org
Subject: [PATCH] sound: Fix last two instances of "kcalloc(1,...)" ->
 "kzalloc()"


  Change the remaining two instances of "kcalloc(1,...)" to
"kzalloc()".

Signed-off-by:  Robert P. J. Day <rpjday@...dspring.com>

---

  Now that that general change has been merged into Linus' tree, I've
added a check for that to an ongoing "coding style" script of mine
that scans the tree on a regular basis to detect stuff that shouldn't
be there anymore.  Having subjected everyone to the unspeakable grief
of getting that patch in in the first place, I'm going to make sure
stuff like that never comes back.

  As Barney Fife would say, "Nip it!  Nip it in the bud!"



diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index fb96144..5ebdd8a 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5936,7 +5936,7 @@ static int patch_alc262(struct hda_codec *codec)
 	int board_config;
 	int err;

-	spec = kcalloc(1, sizeof(*spec), GFP_KERNEL);
+	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
 	if (spec == NULL)
 		return -ENOMEM;

@@ -6795,7 +6795,7 @@ static int patch_alc861(struct hda_codec *codec)
 	int board_config;
 	int err;

-	spec = kcalloc(1, sizeof(*spec), GFP_KERNEL);
+	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
 	if (spec == NULL)
 		return -ENOMEM;

-
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