aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorEli Cohen <[email protected]>2023-04-17 14:03:43 +0300
committerMichael S. Tsirkin <[email protected]>2023-04-21 03:02:29 -0400
commitc384c2401eed99a2e1f84191e573f15b898babe6 (patch)
tree6546699ddf3b38383c8765bc1df261de274ee31f /lib/test_fortify/write_overflow-strlcpy-src.c
parent6a8f57ae2eb07ab39a6f0ccad60c760743051026 (diff)
vdpa/mlx5: Avoid losing link state updates
Current code ignores link state updates if VIRTIO_NET_F_STATUS was not negotiated. However, link state updates could be received before feature negotiation was completed , therefore causing link state events to be lost, possibly leaving the link state down. Modify the code so link state notifier is registered after DRIVER_OK was negotiated and carry the registration only if VIRTIO_NET_F_STATUS was negotiated. Unregister the notifier when the device is reset. Fixes: 033779a708f0 ("vdpa/mlx5: make MTU/STATUS presence conditional on feature bits") Acked-by: Jason Wang <[email protected]> Signed-off-by: Eli Cohen <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions