]> git.baikalelectronics.ru Git - kernel.git/commit
xen-pciback: relax BAR sizing write value check
authorJan Beulich <JBeulich@suse.com>
Mon, 25 Sep 2017 08:01:01 +0000 (02:01 -0600)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 28 Sep 2017 12:26:25 +0000 (08:26 -0400)
commit426671b3964d0ca65828fd9b7ce933112a5227e4
treed0ed3d8dbfbd919dabab198cf9187c77e23177b5
parent4d25d538fb50c1fdeba23ee04090c91d8e83229c
xen-pciback: relax BAR sizing write value check

Just like done in 08e3981e46 ("xen-pciback: return proper values during
BAR sizing") for the ROM BAR, ordinary ones also shouldn't compare the
written value directly against ~0, but consider the r/o bits at the
bottom (if any).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xen-pciback/conf_space_header.c