commit | c1f27efb3febfc707012d01df4cc342a6de63a97 | [log] [tgz] |
---|---|---|
author | Alex Williamson <alex.williamson@redhat.com> | Wed Nov 16 13:45:53 2011 -0700 |
committer | Andreas Färber <afaerber@suse.de> | Tue Oct 09 18:19:21 2012 +0200 |
tree | 4af26f93f4ae117e6b9f2175c1ba55171c16d02a | |
parent | 4c8ba57e0fd27777653e5fd6c84e83edfa15920f [diff] |
pci-assign: Fix PCI_EXP_FLAGS_TYPE shift Coverity found that we're doing (uint16_t)type & 0xf0 >> 8. This is obviously always 0x0, so our attempt to filter out some device types thinks everything is an endpoint. Fix shift amount. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com> (cherry picked from commit b4eccd18591f3d639bc3c923e299b3c1241a0b3f) Signed-off-by: Andreas Färber <afaerber@suse.de>