diff options
Diffstat (limited to 'drivers/hv')
-rw-r--r-- | drivers/hv/channel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 740edec161bb..284cf66489f4 100644 --- a/drivers/hv/channel.c +++ b/drivers/hv/channel.c | |||
@@ -682,8 +682,7 @@ int vmbus_sendpacket_multipagebuffer(struct vmbus_channel *channel, | |||
682 | u32 pfncount = NUM_PAGES_SPANNED(multi_pagebuffer->offset, | 682 | u32 pfncount = NUM_PAGES_SPANNED(multi_pagebuffer->offset, |
683 | multi_pagebuffer->len); | 683 | multi_pagebuffer->len); |
684 | 684 | ||
685 | 685 | if (pfncount > MAX_MULTIPAGE_BUFFER_COUNT) | |
686 | if ((pfncount < 0) || (pfncount > MAX_MULTIPAGE_BUFFER_COUNT)) | ||
687 | return -EINVAL; | 686 | return -EINVAL; |
688 | 687 | ||
689 | /* | 688 | /* |