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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <s5haapnfomr.wl%tiwai@suse.de>
Date:	Mon, 19 Jul 2010 18:00:12 +0200
From:	Takashi Iwai <tiwai@...e.de>
To:	Giuliano Pochini <pochini@...ny.it>
Cc:	Kulikov Vasiliy <segooon@...il.com>,
	kernel-janitors@...r.kernel.org, Jaroslav Kysela <perex@...ex.cz>,
	Julia Lawall <julia@...u.dk>, linux-kernel@...r.kernel.org,
	alsa-devel@...a-project.org
Subject: Re: [PATCH 11/15] pci: echoaudio: check kmalloc() result

At Fri, 16 Jul 2010 21:16:50 +0200,
Giuliano Pochini wrote:
> 
> On Fri, 16 Jul 2010 20:15:43 +0400
> Kulikov Vasiliy <segooon@...il.com> wrote:
> 
> > If kmalloc() fails exit with -ENOMEM.
> > 
> > Signed-off-by: Kulikov Vasiliy <segooon@...il.com>
> > ---
> >  sound/pci/echoaudio/echoaudio.c |    2 ++
> >  1 files changed, 2 insertions(+), 0 deletions(-)
> > 
> > diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c
> > index 668a5ec..20763dd 100644
> > --- a/sound/pci/echoaudio/echoaudio.c
> > +++ b/sound/pci/echoaudio/echoaudio.c
> > @@ -2250,6 +2250,8 @@ static int snd_echo_resume(struct pci_dev *pci)
> >  	DE_INIT(("resume start\n"));
> >  	pci_restore_state(pci);
> >  	commpage_bak = kmalloc(sizeof(struct echoaudio), GFP_KERNEL);
> > +	if (commpage_bak == NULL)
> > +		return -ENOMEM;
> >  	commpage = chip->comm_page;
> >  	memcpy(commpage_bak, commpage, sizeof(struct comm_page));
> >  
> 
> Yes, of course. Thank you.
> 
> 
> Ack-by: Giuliano Pochini <pochini@...ny.it>

Applied now.  Thanks.


Takashi
--
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