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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3289EC77B6F for ; Fri, 14 Apr 2023 10:38:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Jp1Bp7eiOsZoRcNzBuRvMxv1qIrYrPnIh03iqULpkCg=; b=XrqQ5FYJPtayPz nrlAFSmw50HwEDJvqeKQiTu4MFaSyglvoS9dsr0ee7s/7u2xvDoUk457MTDnFe4SR8JzMx4Z1+hQt ymGQJ5f8ekvombU1q0le7ePSSp/5BjmNMl9Vnh1epSr4ow6V/Urld766IdnzA1gfw0qBu3zuxHy2c 39hCwW2ZmVDPbD1WVfbEA1V/8ZYTnFQEoONHvOoC0JFH8d1MhicCmCMuaWwCUo/qe9UKec8EQl1CW GxURogreOr6/TaI0AQk7VrOvRSaLOiCtBonqbSt7tm7SDNwKkv1z73HuKojmyUVNKqitiNQG/2J9x 7cQ44akP0FHfCUKGwvaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnGoc-009C2Y-2G; Fri, 14 Apr 2023 10:38:02 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pnGoZ-009C1Q-1s for linux-rockchip@lists.infradead.org; Fri, 14 Apr 2023 10:38:00 +0000 Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 700026603222; Fri, 14 Apr 2023 11:37:57 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681468678; bh=BUuGaSkZM2nCpFU3QyykMjfVSkXvIL1wWXGYo3FGrgw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=aaQRE84z8irPODJ03rRb32DA02APcoi4S2lmY6kpI8sCSWhhS2EJmqmrLn7MRQBSB 2Ixia+BLNrJhPEGKM/1Thg6/qpbqr/T0YtFfMr24rZpJ20AOxKAOB0+EJkYDfB0XuE B/F8MSKt9KR3sUZHW8FD07zJT+2TOWdXY2Z8rKZoMjLHWkX9BKNajyENFC7mbNi2tM T08NxTeTC7+q5V5S1mwgLGDNY0aw3twwbJYDp8cP+V4/ygsLctsBtDOsD/OFJLLEla VbCD7U1LKFe6ziaA7WsZu62S3JUVLpLa0mP39Sge4c/os2FoV2EhWcJtJ7t8V6Ho6u 5mSu2S+P/rf4A== Message-ID: <27eb4047-636b-6460-fd48-ae4b606956f0@collabora.com> Date: Fri, 14 Apr 2023 12:37:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v2] media: verisilicon: Fix crash when probing encoder Content-Language: en-US To: Benjamin Gaignard , ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, mchehab@kernel.org, m.szyprowski@samsung.com Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com References: <20230413104756.356695-1-benjamin.gaignard@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230413104756.356695-1-benjamin.gaignard@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230414_033759_763385_295E9EE6 X-CRM114-Status: UNSURE ( 8.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Il 13/04/23 12:47, Benjamin Gaignard ha scritto: > ctx->vpu_dst_fmt is no more initialized before calling hantro_try_fmt() > so assigne it to vpu_fmt led to crash the kernel. > Like for decoder case use 'fmt' as format for encoder and clean up > the code. > > Signed-off-by: Benjamin Gaignard > Tested-by: Marek Szyprowski > Fixes: db6f68b51e5c ("media: verisilicon: Do not set context src/dst formats in reset functions") Reviewed-by: AngeloGioacchino Del Regno _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip