[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XEN][PATCH v7 01/19] common/device_tree: handle memory allocation failure in __unflatten_device_tree()


  • To: Vikram Garhwal <vikram.garhwal@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Fri, 2 Jun 2023 09:09:18 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • 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=bpQ2ws80CQNTUwzp0GOLgnlRBVQVxMNSRqvNtb6G+5c=; b=iRVJB0Ie4MbMWDLv4KschkqMz4Va24PFHskgE+csHxl4rVea7RPLrOcptavXVEX2dxOozo/+Cc9U36ArUilWynZBMBx/T01zQNqIZ4A4tkSr3+oCjTxByEEeqYMp5rQoRyb0ma3nakDdh3hV3au2nCo6HbAG5+evBk46z4wcIhDaul8HoYABmcdH41/KtKkiqSorGMRfKyU7xBSOC3bxtPfQD9ledoC2aj4mRH7WOjJiuqvG3X+5SzObRGPU+Vie0T8kcaYrIpg0WpYPLlJX/gDTQ7K3dKr//Si2oFpkaYlGsTYgP4cUD/6KMbt9qwui8/Ymg9NUkiUesPdcQD4WyQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AbvwT0Ji+TumX+WJvb6StShDmYPR51rnP0y0gJJYdguRt/XiudG5Ra0F8Sjt7s6NyNRzg8gKj79YSSjhwvaRcNPpbjLJhyvyYIVX2GCSEh3pCFexEHLwfUJFlt/QcsSU9eNCCNjvEpq6Hs7oPdlo7xpgOrSl20Q+CyJ/l7UFh6sP765yNfKkfjhSC+5DfH1hyW/Xg+24qyky2Uqkve8apsVdicA5DGUeSnUrx3IoXSPCoovoSLEmnjNsMCjliGLQsdPv6pSfPenZ40OwwXSwQnivbbzXU4NFo3Qny+Y8MNMUAw+xT4+6hP/PvQsyGYMWBO8bsfcS1/7V8McAsHXZoA==
  • Cc: <sstabellini@xxxxxxxxxx>, <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>
  • Delivery-date: Fri, 02 Jun 2023 07:09:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 02/06/2023 02:48, Vikram Garhwal wrote:
> Change __unflatten_device_tree() return type to integer so it can propagate
> memory allocation failure. Add panic() in dt_unflatten_host_device_tree() for
> memory allocation failure during boot.
> 
> Fixes: fb97eb614acf ("xen/arm: Create a hierarchical device tree")
> 
NIT: no blank line here

> Signed-off-by: Vikram Garhwal <vikram.garhwal@xxxxxxx>
> Reviewed-by: Henry Wang <Henry.Wang@xxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.