public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Milton Miller <miltonm@bga•com>
To: Changli Gao <xiaosuo@gmail•com>
Cc: akpm@linux-foundation•org, Hoang-Nam Nguyen <hnguyen@de•ibm.com>,
	Christoph Raisch <raisch@de•ibm.com>,
	Roland Dreier <rolandd@cisco•com>,
	Sean Hefty <sean.hefty@intel•com>,
	Hal Rosenstock <hal.rosenstock@gmail•com>,
	Divy Le Ray <divy@chelsio•com>,
	"James E.J. Bottomley" <James.Bottomley@suse•de>,
	"Theodore Ts'o" <tytso@mit•edu>, Andreas Dilger <adilger@sun•com>,
	Alexander Viro <viro@zeniv•linux.org.uk>,
	Paul Menage <menage@google•com>, Li Zefan <lizf@cn•fujitsu.com>,
	linux-rdma@vger•kernel.org, linux-kernel@vger•kernel.org,
	netdev@vger•kernel.org, linux-scsi@vger•kernel.org,
	linux-ext4@vger•kernel.org, linux-fsdevel@vger•kernel.org,
	linux-mm@kvack•org, containers@lists•linux-foundation.org,
	Eric Dumazet <eric.dumazet@gmail•com>,
	Tetsuo Handa <penguin-kernel@i-love•sakura.ne.jp>,
	Peter Zijlstra <peterz@infradead•org>,
	Changli Gao <xiaosuo@gmail•com>
Subject: [PATCH 1/9] mm: add generic adaptive large memory allocation APIs
Date: Thu, 13 May 2010 09:39:36 -0500	[thread overview]
Message-ID: <1273761576_4060@mail4.comsite.net> (raw)
In-Reply-To: <1273744285-8128-1-git-send-email-xiaosuo@gmail.com>

On Thu, 13 May 2010 at 17:51:25 +0800, Changli Gao wrote:

> +static inline void *kvcalloc(size_t n, size_t size)
> +{
> +	return __kvmalloc(n * size, __GFP_ZERO);
> 

This needs multiply overflow checking like kcalloc.

milton

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack•org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack•org"> email@kvack•org </a>

  parent reply	other threads:[~2010-05-13 14:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13  9:51 [PATCH 1/9] mm: add generic adaptive large memory allocation APIs Changli Gao
2010-05-13 13:20 ` Peter Zijlstra
2010-05-13 13:36   ` [PATCH 1/9] mm: add generic adaptive large memory allocationAPIs Tetsuo Handa
2010-05-17  1:34     ` KOSAKI Motohiro
2010-05-13 14:08   ` [PATCH 1/9] mm: add generic adaptive large memory allocation APIs Changli Gao
2010-05-14  8:03     ` Peter Zijlstra
2010-05-14  8:12       ` Changli Gao
2010-05-13 14:39 ` Milton Miller [this message]
2010-05-13 14:49   ` Changli Gao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1273761576_4060@mail4.comsite.net \
    --to=miltonm@bga$(echo .)com \
    --cc=James.Bottomley@suse$(echo .)de \
    --cc=adilger@sun$(echo .)com \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=containers@lists$(echo .)linux-foundation.org \
    --cc=divy@chelsio$(echo .)com \
    --cc=eric.dumazet@gmail$(echo .)com \
    --cc=hal.rosenstock@gmail$(echo .)com \
    --cc=hnguyen@de$(echo .)ibm.com \
    --cc=linux-ext4@vger$(echo .)kernel.org \
    --cc=linux-fsdevel@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-mm@kvack$(echo .)org \
    --cc=linux-rdma@vger$(echo .)kernel.org \
    --cc=linux-scsi@vger$(echo .)kernel.org \
    --cc=lizf@cn$(echo .)fujitsu.com \
    --cc=menage@google$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=penguin-kernel@i-love$(echo .)sakura.ne.jp \
    --cc=peterz@infradead$(echo .)org \
    --cc=raisch@de$(echo .)ibm.com \
    --cc=rolandd@cisco$(echo .)com \
    --cc=sean.hefty@intel$(echo .)com \
    --cc=tytso@mit$(echo .)edu \
    --cc=viro@zeniv$(echo .)linux.org.uk \
    --cc=xiaosuo@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox