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

Re: [PATCH -next] xen-pciback: Fix return in pm_ctrl_init()


  • To: Juergen Gross <jgross@xxxxxxxx>, YueHaibing <yuehaibing@xxxxxxxxxx>, sstabellini@xxxxxxxxxx
  • From: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
  • Date: Wed, 27 Oct 2021 09:18:13 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; 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=W87fTEnY3iPNmG6BeDf1aco/7GScB8QEqVfl/m52wVs=; b=aYMGoiZ0vi78gbBAKYY0TX9jfGkfHx3cTiEdVK0IORkbxD+Ygh2k07h5E3Jy5IjZZpKwO4vgx4ftFe0ya75MldNsLRW+xAy+oOcdFqJxZoeuPgas8vSdVJfR0qxTDLWqeG+6w+hTYcz8RKndpviF7/kWnLFTVeMDX8jdQufvwmJK2PqS/1AamrCiaRe8VhIj3ZGrakqrAGNYLMlsgwaARps7lVBjUkbC+OM9Et67YTcI47ccZj9xQwF4/LfprUWD2h8j/axHagVl5VxX3aHOliRlWnrObL6FmupLyWgO5z+DJLP4Vb1dKLBe14+GbctEpGKrsOHGmZl8+dxoTL3TcA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YBcmK97aZALqRgwJxY/qFXsHrmDew1oW+Wc/GklnnLKa7td06i4oF9nQ8Jg6T9te1vu6c/E3HUiuJdxpTHEiFJk3r9FUC1FX0e741wDdCtiAlv/DI21z97Ruh2+t3WAa40htNAAKHgIKdD3nUiMFWdTfvolA3fFvspsSUecxnbGZ+rOHSwlOKjpKwWXG+dCPAQ5vYfZOOFBar5EGIKkXjvIDeD6Af2ekDdtJmz7CO0K5g3t0i7df3iPhwI8yHj9fh8gqOlBiDqph7L+xC4BXzYgAvU2XcO/ykd9HRonO04UnbdnfcQpS3FdHp3XSgh0dFig9q8ooNfPHkW/kTQ7tFQ==
  • Authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=oracle.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
  • Delivery-date: Wed, 27 Oct 2021 13:18:42 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 10/8/21 11:01 AM, Juergen Gross wrote:
On 08.10.21 09:44, YueHaibing wrote:
Return NULL instead of passing to ERR_PTR while err is zero,
this fix smatch warnings:
drivers/xen/xen-pciback/conf_space_capability.c:163
  pm_ctrl_init() warn: passing zero to 'ERR_PTR'

Fixes: a92336a1176b ("xen/pciback: Drop two backends, squash and cleanup some 
code.")
Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>



Applied to for-linux-5.16.


-boris




 


Rackspace

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