From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2B83C4338F for ; Thu, 29 Jul 2021 15:08:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 99F2760EFD for ; Thu, 29 Jul 2021 15:08:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237648AbhG2PIv (ORCPT ); Thu, 29 Jul 2021 11:08:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237056AbhG2PIv (ORCPT ); Thu, 29 Jul 2021 11:08:51 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46B87C061765 for ; Thu, 29 Jul 2021 08:08:48 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 696961F4431F Message-ID: <1f097baa31efc22009eb5a38119ec6df8cac912e.camel@collabora.com> Subject: Re: [PATCH 3/3] videobuf2-core: sanity checks for requests and qbuf From: Ezequiel Garcia To: Hans Verkuil , linux-media@vger.kernel.org Cc: Paul Kocialkowski , Daniel Almeida , Nicolas Dufresne Date: Thu, 29 Jul 2021 12:08:37 -0300 In-Reply-To: <20210729133627.1592672-4-hverkuil-cisco@xs4all.nl> References: <20210729133627.1592672-1-hverkuil-cisco@xs4all.nl> <20210729133627.1592672-4-hverkuil-cisco@xs4all.nl> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Thu, 2021-07-29 at 15:36 +0200, Hans Verkuil wrote: > The combination of supports_requests == 1 and min_buffers_needed > 0 > is not allowed, WARN on that and return an error. > > Also check that if vb2_core_qbuf() is called from req_queue, that it > doesn't return an error, unless it is -EIO. > > Signed-off-by: Hans Verkuil > Cc: Ezequiel Garcia > Cc: Paul Kocialkowski Reviewed-by: Ezequiel Garcia Thanks, Ezequiel