public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind@infradead.org>
To: Alexey Korolev <akorolev@infradead.org>
Cc: dwmw2@infradead.org, linux-mtd@lists.infradead.org
Subject: Re: [PATCH][nandsim]Fix RAM wasting via kmalloc (take 2)
Date: Sat, 01 Nov 2008 11:35:52 +0200	[thread overview]
Message-ID: <1225532153.26460.9.camel@sauron> (raw)
In-Reply-To: <alpine.LFD.1.10.0810291313140.30280@casper.infradead.org>

On Wed, 2008-10-29 at 13:14 +0000, Alexey Korolev wrote:
> @@ -437,6 +440,8 @@ static int alloc_device(struct nandsim *ns)
>  	for (i = 0; i < ns->geom.pgnum; i++) {
>  		ns->pages[i].byte = NULL;
>  	}
> +	ns->nand_pages_slab = kmem_cache_create("nandsim",
> +						ns->geom.pgszoob, 0, 0, NULL);

Sorry, but how about checking for errors here?

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

  reply	other threads:[~2008-11-01  9:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-29 13:14 [PATCH][nandsim]Fix RAM wasting via kmalloc (take 2) Alexey Korolev
2008-11-01  9:35 ` Artem Bityutskiy [this message]
2008-11-13 13:06 ` Artem Bityutskiy
2008-11-13 13:21   ` Alexey Korolev
2008-11-13 13:48   ` Alexey Korolev

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=1225532153.26460.9.camel@sauron \
    --to=dedekind@infradead.org \
    --cc=akorolev@infradead.org \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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