Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752851AbbFGRAh (ORCPT ); Sun, 7 Jun 2015 13:00:37 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:37917 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752303AbbFGQ7f (ORCPT ); Sun, 7 Jun 2015 12:59:35 -0400 From: Grant Likely To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Fix oops in platform_device resource unregister Date: Sun, 7 Jun 2015 15:20:09 +0100 Message-Id: <1433686811-12303-1-git-send-email-grant.likely@linaro.org> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 770 Lines: 16 The register and unregister paths for platform_devices use different tests to chose which resources to process. Register uses the value of both parent & type, but unregister relies solely on type, which can result in some resources not being unregistered, and an oops when an unregistered resource is attempted to be removed. The oops issue is particularly a problem for devicetree users because resources are not registered in that path. Add a test that exposes the problem for devicetree users, and then fix the problem. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/