Searched hist:97099 (Results 1 - 2 of 2) sorted by relevance

/linux-master/drivers/infiniband/hw/bnxt_re/
H A Dqplib_rcfw.cdiff 97099cc6 Thu Jan 10 06:00:19 MST 2019 Dan Carpenter <dan.carpenter@oracle.com> RDMA/bnxt_re: fix a size calculation

This is from static analysis not from testing. Depending on the value
of rcfw->cmdq_depth, then this might not cause an issue at runtime.

The BITS_TO_LONGS() macro tells us how many longs it take to hold a
bitmap. In other words, it divides by the number if bits per long and
rounds up. Then we want to take that number and multiple by
sizeof(long) to get the number of bytes to allocate.

The code here does the multiplication first so the rounding up is done
in the wrong place. So imagine we want to allocate 1 bit, then
"(1 * 8) / 64 = 1" when we round up. But it should be
"(1 / 64) * 8 = 8". In other words, because of the rounding difference
we might allocate up to "sizeof(long) - 1" bytes fewer than intended.

Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-By: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
/linux-master/drivers/gpu/drm/radeon/
H A Datombios_crtc.cdiff ae5b80d2 Thu Aug 18 03:51:14 MDT 2016 Christian König <christian.koenig@amd.com> drm/radeon: only apply the SS fractional workaround to RS[78]80

Looks like some RV6xx have problems with that.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=97099

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org

Completed in 204 milliseconds