summaryrefslogtreecommitdiffstats
path: root/drivers/staging/brcm80211/util/bcmotp.c
diff options
context:
space:
mode:
authormike.rapoport@gmail.com <mike.rapoport@gmail.com>2010-10-13 00:09:10 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-14 12:28:58 -0700
commit5fcc1fcb2ec18094b3a8022b1974c0b2e9f5f73c (patch)
treec60c70596d4dcc69e23a1830b4e60e5c3f262787 /drivers/staging/brcm80211/util/bcmotp.c
parent97e17d0e7bb861c197e50433325bf2f5f9871f90 (diff)
downloadop-kernel-dev-5fcc1fcb2ec18094b3a8022b1974c0b2e9f5f73c.zip
op-kernel-dev-5fcc1fcb2ec18094b3a8022b1974c0b2e9f5f73c.tar.gz
staging: brcm80211: replace MALLOC() with k[zm]alloc
Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/util/bcmotp.c')
-rw-r--r--drivers/staging/brcm80211/util/bcmotp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/brcm80211/util/bcmotp.c b/drivers/staging/brcm80211/util/bcmotp.c
index d44157e..00daae7d 100644
--- a/drivers/staging/brcm80211/util/bcmotp.c
+++ b/drivers/staging/brcm80211/util/bcmotp.c
@@ -760,7 +760,7 @@ static int hndotp_nvread(void *oh, char *data, uint *len)
/* Read the whole otp so we can easily manipulate it */
lim = hndotp_size(oh);
- rawotp = MALLOC(si_osh(oi->sih), lim);
+ rawotp = kmalloc(lim, GFP_ATOMIC);
if (rawotp == NULL) {
rc = -2;
goto out;
OpenPOWER on IntegriCloud