From nobody Sun Jun 14 09:59:38 2026 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (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 E369238737B; Thu, 2 Apr 2026 09:34:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775122463; cv=none; b=lsis+SSSe1OpAjmwljOxFGe7JJxJRrf7q6q4010KQLk6MhSzb4X3gdxkA8WGPMBEwrLs+f38lkmNrz1W9fg4U/jBkPVG2YiBEw7FhwkcrmjkmEHa41f6zHTv/4hU43JXWvNVUQKY1qKSu6JOlPslbluQbuOx1A8qsOovxSxtoPQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775122463; c=relaxed/simple; bh=fLgaCf5V+rXqmc2NSUTQo0avZ432LIA+F18nt6bc2nU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZMz3j2oQl2M3HMr/XXDuj1pXVOvzVPb8Qjh4KHDXtPEJVwprBOT0eqosW0ykTygKBfyx2hZZ2RXYETfiGWqkTdLZeb+jxTatyz2zgOBHL94rgZIXBS+WVyCiHzkpBN3CEhzfMH2BgSVAaGPRyRQdP6oPMg/RFHcdZn9hlPJCrVA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 18eafac82e7711f1aa26b74ffac11d73-20260402 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:a05d23e2-2eb9-47a7-b4cc-1429f8bb3322,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:e7bac3a,CLOUDID:9fb7aec0872f907d0fbbfd1c23c62e2e,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:102|850|898,TC:nil,Content:0|15|50,EDM:- 3,IP:nil,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,A V:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 18eafac82e7711f1aa26b74ffac11d73-20260402 X-User: zenghongling@kylinos.cn Received: from localhost.localdomain [(10.44.16.150)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA with TLSv1.3 TLS_AES_256_GCM_SHA384 256/256) with ESMTP id 1783636459; Thu, 02 Apr 2026 17:34:07 +0800 From: zenghongling To: deller@gmx.de, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, zhongling0719@126.com, zenghongling , kernel test robot Subject: [PATCH] fbdev: omap2: fix inconsistent lock returns in omapfb_mmap Date: Thu, 2 Apr 2026 17:34:03 +0800 Message-Id: <20260402093403.12173-1-zenghongling@kylinos.cn> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix the warning about inconsistent returns for '&rg->lock' in omapfb_mmap() function. The warning arises because the error path uses 'ofbi->region' while the normal path uses 'rg'. smatch warnings: drivers/video/fbdev/omap2/omapfb/omapfb-main.c:1126 omapfb_mmap() warn: inconsistent returns '&rg->lock'. Reported-by: kernel test robot Signed-off-by: zenghongling --- drivers/video/fbdev/omap2/omapfb/omapfb-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/omap2/omapfb/omapfb-main.c b/drivers/video= /fbdev/omap2/omapfb/omapfb-main.c index a8b2930290e1..d70deb6a9150 100644 --- a/drivers/video/fbdev/omap2/omapfb/omapfb-main.c +++ b/drivers/video/fbdev/omap2/omapfb/omapfb-main.c @@ -1121,7 +1121,7 @@ static int omapfb_mmap(struct fb_info *fbi, struct vm= _area_struct *vma) return 0; =20 error: - omapfb_put_mem_region(ofbi->region); + omapfb_put_mem_region(rg); =20 return r; } --=20 2.25.1