From patchwork Wed Jul 28 16:39:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kulikov Vasiliy X-Patchwork-Id: 114852 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6SGdlNE001217 for ; Wed, 28 Jul 2010 16:39:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755608Ab0G1Qjq (ORCPT ); Wed, 28 Jul 2010 12:39:46 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:55220 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754027Ab0G1Qjp (ORCPT ); Wed, 28 Jul 2010 12:39:45 -0400 Received: by eya25 with SMTP id 25so1114333eya.19 for ; Wed, 28 Jul 2010 09:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=Z2reg0ebOUaIYla+LQjLhOLT6Uvwh3mOY23ywh9Haxw=; b=nzrUfgoaiXEOfNuzfd/XGKvyM7CENwXsJjf6WJlLFJScakBf60+VkNvVMPTUrN6u/m x94GV+tLjVzntwpxHMiySa7SmJN/EGTSLyO24OjiWTdXhfYsbElA02sUNYiNLILKLwAi u32T1vEpwsQT/VF9scdhs/bPVqW38/QJsI1xI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=FXQFf5jD8srYrDbAS3lqxnlgBUK2Ewh/xupoIQ2sDWVUJLWL/XxmZO3VOiQ48BnaM1 igV5Ci8wlI81Cq4u+UMGcre8sNOH+fqdBf557OOxAoiG37zSDSxwmjjbnE0oVCfVrJ9f U1EvIr69lOZyoDR7urTdJ/9GkOta7paMO+670= Received: by 10.213.59.76 with SMTP id k12mr6081609ebh.13.1280335183659; Wed, 28 Jul 2010 09:39:43 -0700 (PDT) Received: from localhost ([213.87.87.218]) by mx.google.com with ESMTPS id a48sm9781883eei.18.2010.07.28.09.39.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 28 Jul 2010 09:39:43 -0700 (PDT) From: Kulikov Vasiliy To: kernel-janitors@vger.kernel.org Cc: Paul Mundt , Tejun Heo , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/10] sh: dma: check return value of create_proc_read_entry() Date: Wed, 28 Jul 2010 20:39:26 +0400 Message-Id: <1280335166-23225-1-git-send-email-segooon@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 28 Jul 2010 16:39:47 +0000 (UTC) diff --git a/arch/sh/drivers/dma/dma-api.c b/arch/sh/drivers/dma/dma-api.c index 4a27722..f46848f 100644 --- a/arch/sh/drivers/dma/dma-api.c +++ b/arch/sh/drivers/dma/dma-api.c @@ -412,8 +412,8 @@ EXPORT_SYMBOL(unregister_dmac); static int __init dma_api_init(void) { printk(KERN_NOTICE "DMA: Registering DMA API.\n"); - create_proc_read_entry("dma", 0, 0, dma_read_proc, 0); - return 0; + return create_proc_read_entry("dma", 0, 0, dma_read_proc, 0) + ? 0 : -ENOMEM; } subsys_initcall(dma_api_init);