Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp210535lfu; Wed, 30 Mar 2022 21:07:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWSGv5CdOwRy1ldWb+urMhZSCR2Pq21AB9vqaXak0vRcPibQjDXwFaS62wPrxxf64PG+zc X-Received: by 2002:a05:6a00:e0b:b0:4fa:a167:5b35 with SMTP id bq11-20020a056a000e0b00b004faa1675b35mr3301351pfb.69.1648699490299; Wed, 30 Mar 2022 21:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648699490; cv=none; d=google.com; s=arc-20160816; b=VL5W3xuu3THwK3Wu8/L8gzuuXlKJPUPsqlq8UrBhIP63g+8pTIJxkV+hc06zTYS89g 1heKUldehWGcGXVchb49qtSzZg5FUHX4aFqHIID5JCZ4ur/wgVOIfQAzpT8VMgaaEyHR 4gS53zU/CEpjXgf5r/w73Zrrm69TdgZV9dEo6oS41sRle8pEjLk4ANTRt5ACrgMoKXUS zNbvMcctnmlguibPv/OfuTUx+JelLF+1upYFnBq+2I1wLvvnNXASXxG1kntJSrxeck8M XN8BLDuIi1jieWms/rlRUFqNNAaH4Wb6rgAS4U6pvyqHRT8YxqXNQHAiVgLZKcLIC+Ek 0HLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=48w9cCcHfu4RFzRm5PZAyw72DdxLC63ffgBHswIn+j4=; b=AuhNlzKgXpEwlGYolf6xUp+y9lekdzzrrhALt91iqMneK+NwPY7LKTSTgNILR+UyX1 rnL6UJxnACCoJMCGVYW+owtttAJk27p6letclaScHf8aJ/pLJJ/E34DGayCuU5c0O9dA ap0/yszUGzcTrbIdsoVkbi6/GZkk62hosAAKEoy4jom61yj5g5Cqa1vVpXYVrRIgfyVm U01d9BeEouoIiJG77zJbOWMLChW1ENetOyIzdQkzXCZRNWbgxGJkidotgTGcDeUQxD03 mURrDBtBKjUe4k8NdFqyJ7N2gmDXCvhcKqPvsZhMEY7kjHkmwIR+9a6fCTji5J+As5b9 0eqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e2oys9YH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i2-20020a170902eb4200b00153b2d16601si14604147pli.521.2022.03.30.21.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:04:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e2oys9YH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C083183833; Wed, 30 Mar 2022 20:11:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245759AbiC3MUx (ORCPT + 99 others); Wed, 30 Mar 2022 08:20:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347311AbiC3MGL (ORCPT ); Wed, 30 Mar 2022 08:06:11 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 690EBBF46 for ; Wed, 30 Mar 2022 05:03:36 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id j8so10073916pll.11 for ; Wed, 30 Mar 2022 05:03:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=48w9cCcHfu4RFzRm5PZAyw72DdxLC63ffgBHswIn+j4=; b=e2oys9YHS1G4ibMgjW99OE3iDzMIYL6l9CnklayAdF2/xl9anpeDhLfh2+ycju7pkk jVM8SwJI7cy6FAd+qP9m9lafilhptX+dnPyU/ogkIn2Q+w2gPG+PM96hKg+sDnGLgYHS Mh9UTHx7rAA4iTqN0e6oweEDLKGUJ/IsGLmkxDHTid4PHkzEGi/JNsV7282VfYeWex1Q KcaAlOY/6cD1PVyEXlXiSTqh7No95xKZuDfxGaP2Xl7IkShsybZwVKftzdBqrRjzwt9U /hD2+lGydFDG7xj1RAV5R1VQahPryrV4INhY8Ps9tS/2P6o9rtSl0P7xJ79plT1OjGxj m8dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=48w9cCcHfu4RFzRm5PZAyw72DdxLC63ffgBHswIn+j4=; b=dsrdqMl0rLXTq3EyDZ5GXmuuVY9QPRy8DHQ6F0cbkllIZSJWl8xwuf8DBXQtM1WWlD LkXnPotwy8wu/v855rsYH36J6Y4UAdVt6vwL7Oib232MTE5WJ5ZRF4wzcDiUTZaBLeq0 LAVIJAuzkzEcAqVdeRQ9mybWVwkZo7SmZjYPK+cJbPOuVhfFJnZej3/LrvPTefO+iupt sZX8I23d8P0GCvwVAA1k8LJPh7TM8nRB8f88KQ7QoCsmZvf4m1sx5JRgGaG9y9KXH/Po FGiizcUW9dzVjmm+iEtPp20wD92GUBFRtyv1Xd7p6XrFEnWzwWaVwdb9O9Z8AcTXQFHz 3VQw== X-Gm-Message-State: AOAM532BubOPCJlwca92wUhBG5wjsWviML4tTSqT6F2KgpSiwVwNzjwT ZGue85qhCiQKXK8myrwKkqY= X-Received: by 2002:a17:90b:1c07:b0:1c7:5324:c68e with SMTP id oc7-20020a17090b1c0700b001c75324c68emr4691633pjb.202.1648641815737; Wed, 30 Mar 2022 05:03:35 -0700 (PDT) Received: from localhost ([119.3.119.18]) by smtp.gmail.com with ESMTPSA id m18-20020a056a00081200b004faeae3a291sm22940884pfk.26.2022.03.30.05.03.34 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Mar 2022 05:03:35 -0700 (PDT) From: Xiaomeng Tong To: patrik.r.jakobsson@gmail.com, airlied@linux.ie, daniel@ffwll.ch Cc: rob@ti.com, yakui.zhao@intel.com, airlied@redhat.com, alan@linux.intel.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Xiaomeng Tong Subject: [PATCH 5/5] gma500: fix a missing break in psb_driver_load Date: Wed, 30 Mar 2022 20:02:46 +0800 Message-Id: <20220330120246.25580-6-xiam0nd.tong@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220330120246.25580-1-xiam0nd.tong@gmail.com> References: <20220330120246.25580-1-xiam0nd.tong@gmail.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of exiting the loop as expected when an entry is found, the list_for_each_entry() continues until the traversal is complete. To avoid potential executing 'ret = gma_backlight_init(dev);' repeatly, add a break after the switch statement. Fixes: 5c49fd3aa0ab0 ("gma500: Add the core DRM files and headers") Signed-off-by: Xiaomeng Tong --- drivers/gpu/drm/gma500/psb_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 65cf1c79dd7c..d65a68811bf7 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -398,6 +398,8 @@ static int psb_driver_load(struct drm_device *dev, unsigned long flags) ret = gma_backlight_init(dev); break; } + + break; } if (ret) -- 2.17.1