login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
7
RE: [PATCH] Check kmalloc return value before use the buffer
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Linus WALLEIJ
Subject:
RE: [PATCH] Check kmalloc return value before use the buffer
Date: Friday, May 7, 2010 - 11:57 am
[Steven]
quoted text
> the code in arch/arm/mach-u300/dummyspichip.c is > > bigtxbuf_virtual = kmalloc(DMA_TEST_SIZE, GFP_KERNEL); > if (bigtxbuf_virtual == NULL) { > status = -ENOMEM; > goto out; > } > bigrxbuf_virtual = kmalloc(DMA_TEST_SIZE, GFP_KERNEL); > > > if kmalloc memory space for bigrxbuf_virtual is NULL, when it have > kmalloc DMA_TEST_SIZE memory space for bigtxbuf_virtual,so ,if kmalloc > memory for bigtxbuf_virtual success and kmalloc memory for > bigrxbuf_virtual faild,i think we must kfree bigtxbuf_virtual memory
Ha, I also misread tx for rx, sorry. Acked-by: Linus Walleij <linus.walleij@stericsson.com> Yours, Linus Walleij --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Check kmalloc return value before use the buffer
, Steven Liu
, (Thu May 6, 7:41 pm)
RE: [PATCH] Check kmalloc return value before use the buffer
, Linus WALLEIJ
, (Thu May 6, 11:52 pm)
Re: [PATCH] Check kmalloc return value before use the buffer
, Steven Liu
, (Fri May 7, 12:16 am)
Re: [PATCH] Check kmalloc return value before use the buffer
, Steven Liu
, (Fri May 7, 12:17 am)
Re: [PATCH] Check kmalloc return value before use the buffer
, Nigel Cunningham
, (Fri May 7, 2:37 am)
Re: [PATCH] Check kmalloc return value before use the buffer
, Nigel Cunningham
, (Fri May 7, 2:37 am)
Re: [PATCH] Check kmalloc return value before use the buffer
, Steven Liu
, (Fri May 7, 2:47 am)
Re: [PATCH] Check kmalloc return value before use the buffer
, Steven Liu
, (Fri May 7, 2:50 am)
Re: [PATCH] Check kmalloc return value before use the buffer
, Nigel Cunningham
, (Fri May 7, 2:51 am)
Re: [PATCH] Check kmalloc return value before use the buffer
, Nigel Cunningham
, (Fri May 7, 2:52 am)
Re: [PATCH] Check kmalloc return value before use the buffer
, Steven Liu
, (Fri May 7, 2:55 am)
RE: [PATCH] Check kmalloc return value before use the buffer
, Linus WALLEIJ
, (Fri May 7, 11:57 am)
Re: [PATCH] Check kmalloc return value before use the buffer
, Nigel Cunningham
, (Fri May 7, 6:27 pm)
Re: [PATCH] Check kmalloc return value before use the buffer
, Steven Liu
, (Sat May 8, 1:56 am)
Re: [PATCH] Check kmalloc return value before use the buffer
, Andy Isaacson
, (Mon May 10, 2:49 pm)
Re: [PATCH] Check kmalloc return value before use the buffer
, Nigel Cunningham
, (Mon May 10, 3:08 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
openmoko-community
:
Warren Baird
Re: consider buying Neo Freerunner
tom
Re: Internal pressure sensor
rakshat hooja
[Wikireader] Wikireader in India
Cédric Berger
Re: [android] Maps application
Michael Zanetti
Re: [android] SIM pin entry
netbsd-tech-kern
:
Andrew Doran
Re: Kernel modules
Thomas E. Spanjaard
Re: Bad side effect of "newdirpref"
Hans Petter Selasky
bus_dmamem question
Manuel Bouyer
Re: freebsd 5.99.41 as XEN3_DOMU
Matthias Buelow
Re: funlink() for fun!
freebsd-hackers
:
Joel Dahl
Re: Nvidia amd64
Bernd Walter
Re: Build world with DEBUG_FLAGS='-g -O0'
John Baldwin
Re: error 1 lba 752976 while booting from USB key to install
Garrett Cooper
Re: pkg_add doesn't keep dependent pkgs
Nate Eldredge
Re: Email sent from "at" command going to the wrong account
freebsd-bugs
:
Warren Block
Re: bin/139870: [regression]: sendmail(8): existing sendmail aliases ignored until...
FreeBSD bugmaster
Current problem reports
Jack Twilley
kern/131912: New devices using Silicon Labs chips - patches enclosed
Chistoph Weber-Fahr
misc/132553: ipfw doesnt understand ftp-data port
Oleg Gawriloff
misc/132250: ciss driver does not support more then 15 drives
madwifi-devel
:
David Overton
[PATCH] Use new get_wireless_stats handler in struct iw_handler_def
Aditya Bhave
[Madwifi-devel] Unable to configure MadWifi as a simple AP on Ubuntu
Prashant Alves
[PATCH] txpower: enable iwconfig <interface> txpower
Bruno Randolf
Re: [Madwifi-devel] mac80211 with madwifi
Michael Renzmann
Re: Support for AR5007EG
Colocation donated by:
Syndicate