Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761607AbYAKMGi (ORCPT ); Fri, 11 Jan 2008 07:06:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760569AbYAKMDw (ORCPT ); Fri, 11 Jan 2008 07:03:52 -0500 Received: from smtp113.plus.mail.re1.yahoo.com ([69.147.102.76]:39742 "HELO smtp113.plus.mail.re1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1759062AbYAKMDk (ORCPT ); Fri, 11 Jan 2008 07:03:40 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References; b=HHdY9w5ZQeXxYV6y+wAdrLTvXDAqUU9OqUaPXsZPQRcA4NdTMkZdainSWu6tV35IQ5cTkUq0ne6VayB/aOSPe7LPaJ/txoNktjZfXgZticLrXakDVI581oJUweZx8Kkye9xrhTIeiqVxmxzKTYLszjGWuN6+oKmDV0JGxEngVyk= ; X-YMail-OSG: Oy6sl68VM1nXZpVdQ64vou12pmBuDuPADKuwtL7EutGxjJ53e1S4Bz_HVX7vfeEQ_fpr4pRhRw-- X-Yahoo-Newman-Property: ymail-3 From: Borislav Petkov To: Bartlomiej@gollum.tnic, Zolnierkiewicz@gollum.tnic, Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, Borislav Petkov Subject: [PATCH 18/21] ide-floppy: fix error handling in idefloppy_probe() Date: Fri, 11 Jan 2008 12:58:16 +0100 Message-Id: <1200052699-28420-19-git-send-email-bbpetkov@yahoo.de> X-Mailer: git-send-email debian.1.5.3.7.1-dirty In-Reply-To: <1200052699-28420-18-git-send-email-bbpetkov@yahoo.de> References: <1200052699-28420-1-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-2-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-3-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-4-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-5-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-6-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-7-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-8-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-9-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-10-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-11-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-12-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-13-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-14-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-15-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-16-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-17-git-send-email-bbpetkov@yahoo.de> <1200052699-28420-18-git-send-email-bbpetkov@yahoo.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 950 Lines: 27 Signed-off-by: Borislav Petkov --- drivers/ide/ide-floppy.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 89b26ea..0729df5 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c @@ -1737,7 +1737,8 @@ static int ide_floppy_probe(ide_drive_t *drive) " emulation.\n", drive->name); goto failed; } - if ((floppy = kzalloc(sizeof (idefloppy_floppy_t), GFP_KERNEL)) == NULL) { + floppy = kzalloc(sizeof(idefloppy_floppy_t), GFP_KERNEL); + if (!floppy) { printk(KERN_ERR "ide-floppy: %s: Can't allocate a floppy" " structure\n", drive->name); goto failed; -- 1.5.3.7 -- 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/