Message ID | KL1PR06MB6178AEB5A5783EE16AB39AAEE06D2@KL1PR06MB6178.apcprd06.prod.outlook.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01olkn2086.outbound.protection.outlook.com [40.92.53.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5248B2571 for <linux-media@vger.kernel.org>; Sun, 14 Jan 2024 15:28:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="OXrntBy5" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nOmVzYyuFlKL+Haa/JMRnL8nqiIi2er6POooqA9avZJD0nxQRQn8D7c3MsGP5nTncU8bRadzf4exu7B2h6Qlud04rFC3HuAzvRd1bhLOXtj5LVnvLf5R+KGfQ101lPPsEv0T4sHRdqHZ8N2+2vra4GWRFkBX+JKK7fsxZiZOJm2US31ZvDgozBrdFfaG6FtZFcBCnh/eUCqcecJhq1YICZD+SLEiTXMCWYA1ipwQ7lvK9yJq2Hk1qIOfixTd4u2xfD6RkSUJzcqkueAY6hkIGmx89kdMZBYtYqlCputa4l3WP3vht231Ng3B1cH6LrIqnd6gOyjUhQjyIuZVA/l5vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hPH+sO2QiWheMLXonMxKjDjv333IeBR04rcwN0eL2LU=; b=msGKlNtr4yj5MkbWAFBLU0RmS5VZHWBw24GoEdVlYnNbURD6R+l9twBB0txmlnA3BN0cUcc46rNdhe4JYbySGi5poereFmNAZ3pckMWcMBUpvpNvwJmC1Ltyx2iQZFlUlHdR+AZwko/4gxGBu6HxNCpfd6G5RXJ3NwTIvu+CL5Rr1mawCl1TSsdyWaEPYBeaXhQdboBGG3cNkOm+cQobVzBeQm3k69ZknJQG8XJxl4sQiY4kmD0v8w7LUhH4u1PTXajmd81X7Z/hhH8dqxALgzRvdm7C/29TFBWrC6xNaRvlig0gPgVODCjtK3KAfQmMQW/gYCC4aR5EKX2vr11fZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hPH+sO2QiWheMLXonMxKjDjv333IeBR04rcwN0eL2LU=; b=OXrntBy57ZXHxJONtN1BNjGlF3Z40zNzQntQDRO7PHm3v2+VgCNhEKoGlTUdeC97lVpHw3SldI3f3lG//G5bT69qtuHlwJhVJBLhTHqbAWo+s14BQRh0k72Ryw/yJ3Tx/tN0tHaJbPgrLnfZC7SwbikkQDJkSzOZ2E2mK5wc9WMOBhPf68sFd8qo+sTKjlP8zf1YHEmVmd/5WgE2qG62kuCv3M0o2Tmok52+5WDzkmrDf4XoNyqtVgdAPw+Y9OnsPGfSkqxuNheZ8/8ZmG+uxBcf7KL4TykaDKpZRYx3rYy5H9IKQQE7la5eBLpNEE8k8JADOHlRpJzexTnyPYdSKg== Received: from KL1PR06MB6178.apcprd06.prod.outlook.com (2603:1096:820:d8::6) by SEZPR06MB6157.apcprd06.prod.outlook.com (2603:1096:101:eb::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.23; Sun, 14 Jan 2024 15:28:27 +0000 Received: from KL1PR06MB6178.apcprd06.prod.outlook.com ([fe80::f116:c835:7a40:f79c]) by KL1PR06MB6178.apcprd06.prod.outlook.com ([fe80::f116:c835:7a40:f79c%7]) with mapi id 15.20.7181.019; Sun, 14 Jan 2024 15:28:25 +0000 Date: Sun, 14 Jan 2024 23:28:20 +0800 From: Andy Chen <andy.chen88@outlook.com> To: qianxin.chen@qq.com Cc: linux-media@vger.kernel.org Subject: find_csis_format(),fix return problem Message-ID: <KL1PR06MB6178AEB5A5783EE16AB39AAEE06D2@KL1PR06MB6178.apcprd06.prod.outlook.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-TMN: [6U+iv99lc3HHuDMYD3jhNnNJ6wlP+T2MJ5cFWGbUxVI=] X-ClientProxiedBy: TYCP286CA0300.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c8::15) To KL1PR06MB6178.apcprd06.prod.outlook.com (2603:1096:820:d8::6) X-Microsoft-Original-Message-ID: <20240114152820.GA3382@ubuntu> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: KL1PR06MB6178:EE_|SEZPR06MB6157:EE_ X-MS-Office365-Filtering-Correlation-Id: 48406191-5526-4eda-6ad5-08dc15157351 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lIVxc7awuL2xdgJJAD7TYNLKHPr+PUWFQ2LIixta3zwXTjr4gqaQ3S4YklOLKac1W4UYPPrMaVFYy5085YnDlNGgy7yd1GWZuCJ+G9fbFXhLihJricrxZswFFwVVKBUK5yW04DSqb6stdcuG0JcO5EAH22+OEuh0L6KLXCFClAtfdG/QqkGLcPRZYQ743quuTNll6k1sIp9m2t8+EHjzMasrfV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j42vLY3ZGQT1+2PP41G630wNGPTIKfilO/fppHbdwDVKa74bx5trSZlk9hC5kWSjOY8R9YYO+qSIPAqK6JTD6g9gWE11luZyd9ckzfeHhd+y4dAbs4HsbvHd31TOZ56puNjydMD3WAg2DYrMPDWXzNM78qPo3hN3jYrb79yAZL9/FSj3PbIWKGh3hQ6rT5QTzCMFAym+l01LM0gs1fRHbSGXZdoFPuCWwtZkX4mXBpuVfKVDFTxKdR7V/lTLZilLXVm05jJ7iNWREVJ/cDKKJ5rmeS8ERDG1/N8pR0lXtQKTK9MdrwnsbJqH8hGH/DQcLectohIY2Jt3/Q3MAlz0cNIadvQbvOPryhmnIdng78RH+iYKaMBrcLe/tRORJv1QLgaqqf7VnStzWhk1B8ErPbqGMmX5LJWttrLVlaN9orzFHuGHEPUelCzvvcWQfoWjTu3vQM/fXJf5vVkMSbida/mcDxuQdN9TgzHSxYbajy5XG+EiRHO/eO3w9auiZcJRpr+IKke5AwyzQGob9xts8AEGUmnj/RakJyTR/9afqti0cDgS7KXF8bw9FqJdsrId20WPPlPw0sIHM= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48406191-5526-4eda-6ad5-08dc15157351 X-MS-Exchange-CrossTenant-AuthSource: KL1PR06MB6178.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2024 15:28:25.8004 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6157 |
Series |
find_csis_format(),fix return problem
|
expand
|
diff --git a/drivers/media/platform/nxp/imx-mipi-csis.c b/drivers/media/platform/nxp/imx-mipi-csis.c index db8ff5f5c4d3..ac867620e2ba 100644 --- a/drivers/media/platform/nxp/imx-mipi-csis.c +++ b/drivers/media/platform/nxp/imx-mipi-csis.c @@ -956,6 +956,8 @@ static int mipi_csis_s_stream(struct v4l2_subdev *sd, int enable) format = v4l2_subdev_state_get_format(state, CSIS_PAD_SINK); csis_fmt = find_csis_format(format->code); + if (!csis_fmt) + return -EPIPE; ret = mipi_csis_calculate_params(csis, csis_fmt); if (ret < 0)