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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081013104511.477b0614@infradead.org>
Date:	Mon, 13 Oct 2008 10:45:11 -0400
From:	Arjan van de Ven <arjan@...radead.org>
To:	"Pekka Enberg" <penberg@...helsinki.fi>
Cc:	torvalds@...ux-foundation.org, linux-kernel@...r.kernel.org,
	mingo@...e.hu
Subject: Re: [PATCH] fastboot: Introduce an asynchronous function call
 mechanism

On Mon, 13 Oct 2008 10:15:03 +0300
"Pekka Enberg" <penberg@...helsinki.fi> wrote:

> Hi Arjan,
> 
> On Mon, Oct 13, 2008 at 2:44 AM, Arjan van de Ven
> <arjan@...radead.org> wrote:
> > +void call_async(int pool_number, int argc, ...)
> > +{
> > +       struct async_item *item;
> > +       va_list ap;
> > +
> > +       if (argc > 4 || argc < 0) {
> > +               WARN(1, KERN_ERR "Too many arguments to async
> > function! Skipping...\n");
> > +               return;
> > +       }
> > +
> > +       item = kmalloc(sizeof(struct async_item), GFP_ATOMIC);
> 
> Why is there no check for NULL here?


because at 35000 feet it won't return NULL ;-)

but yeah thanks for spotting, I'll fix it.

-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
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