svn commit: r316813 - head/sys/dev/hyperv/storvsc
Sepherosa Ziehau
sephe at FreeBSD.org
Fri Apr 14 05:25:23 UTC 2017
Author: sephe
Date: Fri Apr 14 05:25:21 2017
New Revision: 316813
URL: https://svnweb.freebsd.org/changeset/base/316813
Log:
hyperv/storvsc: Use ULL for 64bits value shift.
Reported by: PVS
MFC after: 3 days
Sponsored by: Microsoft
Modified:
head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Modified: head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
==============================================================================
--- head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c Fri Apr 14 05:18:42 2017 (r316812)
+++ head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c Fri Apr 14 05:25:21 2017 (r316813)
@@ -1771,7 +1771,7 @@ storvsc_check_bounce_buffer_sgl(bus_dma_
}
pre_aligned = TRUE;
} else {
- tmp_bits |= 1 << i;
+ tmp_bits |= 1ULL << i;
if (!pre_aligned) {
if (phys_addr != vtophys(sgl[i-1].ds_addr +
sgl[i-1].ds_len)) {
More information about the svn-src-all
mailing list