From patchwork Sun Nov 22 21:52:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOpbWV0aCBNw6FydG9u?= X-Patchwork-Id: 2159 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Sun, 22 Nov 2009 21:52:37 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra.chehab.org with IMAP (fetchmail-6.3.6) for (single-drop); Mon, 23 Nov 2009 09:19:49 -0200 (BRST) Received: from vger.kernel.org ([209.132.176.167]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NCKMH-0001Uy-4U; Sun, 22 Nov 2009 21:52:37 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751325AbZKVVw3 (ORCPT + 1 other); Sun, 22 Nov 2009 16:52:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751018AbZKVVw3 (ORCPT ); Sun, 22 Nov 2009 16:52:29 -0500 Received: from mail02a.mail.t-online.hu ([84.2.40.7]:64026 "EHLO mail02a.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817AbZKVVw2 (ORCPT ); Sun, 22 Nov 2009 16:52:28 -0500 Received: from [192.168.1.64] (dsl51B6C41D.pool.t-online.hu [81.182.196.29]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail02a.mail.t-online.hu (Postfix) with ESMTPSA id 13D3B256240 for ; Sun, 22 Nov 2009 22:51:51 +0100 (CET) Message-ID: <4B09B29F.7090502@freemail.hu> Date: Sun, 22 Nov 2009 22:52:31 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: V4L Mailing List Subject: [PATCH] smssdio: initialize return value X-DCC-mail.t-online.hu-Metrics: mail02a.mail.t-online.hu 32711; Body=1 Fuz1=1 Fuz2=1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Márton Németh The return value may be used uninitialized when the size parameter happens to be 0. Signed-off-by: Márton Németh --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r bc16afd1e7a4 linux/drivers/media/dvb/siano/smssdio.c --- a/linux/drivers/media/dvb/siano/smssdio.c Sat Nov 21 12:01:36 2009 +0100 +++ b/linux/drivers/media/dvb/siano/smssdio.c Sun Nov 22 22:40:31 2009 +0100 @@ -78,7 +78,7 @@ static int smssdio_sendrequest(void *context, void *buffer, size_t size) { - int ret; + int ret = 0; struct smssdio_device *smsdev; smsdev = context;