From patchwork Sat Jun 6 08:15:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Figo.zhang" X-Patchwork-Id: 28422 X-Patchwork-Delegate: dougsland@redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n568GLnY025896 for ; Sat, 6 Jun 2009 08:16:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752269AbZFFIQP (ORCPT ); Sat, 6 Jun 2009 04:16:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752572AbZFFIQP (ORCPT ); Sat, 6 Jun 2009 04:16:15 -0400 Received: from rv-out-0506.google.com ([209.85.198.225]:54989 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752271AbZFFIQO (ORCPT ); Sat, 6 Jun 2009 04:16:14 -0400 Received: by rv-out-0506.google.com with SMTP id f9so819457rvb.1 for ; Sat, 06 Jun 2009 01:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=dDgZiIRbh5wzCp+HaD60Unueq3tzdQQVDO5niYEhL2Q=; b=rkVq71SD68nMt4iZKhpaRr2RHdbfLllB2GVITA9hkQpZRXpB3i3s1r9Z0Af2skBTT9 CZi4KnTeI4Rfxf7VienPaObov6HBxNgsCW9XJmSoifVDqkEYnNdE8V1SVzzUmfccXopt Z3kfF6N5zzcnsxGSGM4C2Bs24Dj95kfmqIJkE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=R9QlrazU8M+Y3zhaf4Cs4OlmUmxNcXp2dfSn+ekS2H0HnibpEpJrGUKlkCXn6PpPLf iSv3ImC3l9sJrso7DEVPJ5aATVg3v4PIGZcgkhRJqmQysYlklcPeBmVI9j/1lF5+updA 85q3plvvj84yf0Z8pngBHLE1IKKpFxeLgdY4I= Received: by 10.140.199.15 with SMTP id w15mr1110343rvf.111.1244276174508; Sat, 06 Jun 2009 01:16:14 -0700 (PDT) Received: from ?221.137.240.219? ([221.137.240.219]) by mx.google.com with ESMTPS id g22sm2386229rvb.56.2009.06.06.01.16.09 (version=SSLv3 cipher=RC4-MD5); Sat, 06 Jun 2009 01:16:13 -0700 (PDT) Subject: [PATCH] V4L: return -ENOMEM From: "Figo.zhang" To: Mauro Carvalho Chehab Cc: Linux Media Mailing List Date: Sat, 06 Jun 2009 16:15:22 +0800 Message-Id: <1244276123.3185.2.camel@myhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org it is better return -ENOMEM than -EIO Signed-off-by: Figo.zhang --- drivers/media/video/videobuf-dma-sg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- 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 --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c index da1790e..03c8b04 100644 --- a/drivers/media/video/videobuf-dma-sg.c +++ b/drivers/media/video/videobuf-dma-sg.c @@ -251,7 +251,7 @@ int videobuf_dma_map(struct videobuf_queue* q, struct videobuf_dmabuf *dma) kfree(dma->sglist); dma->sglist = NULL; dma->sglen = 0; - return -EIO; + return -ENOMEM; } } return 0;