svn commit: r317121 - in stable/11/sys/dev/hyperv: storvsc utilities
Sepherosa Ziehau
sephe at FreeBSD.org
Wed Apr 19 03:39:51 UTC 2017
Author: sephe
Date: Wed Apr 19 03:39:50 2017
New Revision: 317121
URL: https://svnweb.freebsd.org/changeset/base/317121
Log:
MFC 316813,316815
316813
hyperv/storvsc: Use ULL for 64bits value shift.
Reported by: PVS
Sponsored by: Microsoft
316815
hyperv/kvp: Remove always false condition.
Reported by: PVS
Sponsored by: Microsoft
Modified:
stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
stable/11/sys/dev/hyperv/utilities/hv_kvp.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
==============================================================================
--- stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c Wed Apr 19 03:37:11 2017 (r317120)
+++ stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c Wed Apr 19 03:39:50 2017 (r317121)
@@ -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)) {
Modified: stable/11/sys/dev/hyperv/utilities/hv_kvp.c
==============================================================================
--- stable/11/sys/dev/hyperv/utilities/hv_kvp.c Wed Apr 19 03:37:11 2017 (r317120)
+++ stable/11/sys/dev/hyperv/utilities/hv_kvp.c Wed Apr 19 03:39:50 2017 (r317121)
@@ -516,7 +516,7 @@ hv_kvp_convert_usermsg_to_hostmsg(struct
/* Use values by string */
host_exchg_data->value_type = HV_REG_SZ;
- if ((hkey_len < 0) || (hvalue_len < 0))
+ if (hvalue_len < 0)
return (EINVAL);
return (0);
More information about the svn-src-stable-11
mailing list