diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hv/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 433f72a1c006..c76ffbe59f65 100644 --- a/drivers/hv/channel.c +++ b/drivers/hv/channel.c | |||
@@ -366,8 +366,8 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer, | |||
366 | unsigned long flags; | 366 | unsigned long flags; |
367 | int ret = 0; | 367 | int ret = 0; |
368 | 368 | ||
369 | next_gpadl_handle = atomic_read(&vmbus_connection.next_gpadl_handle); | 369 | next_gpadl_handle = |
370 | atomic_inc(&vmbus_connection.next_gpadl_handle); | 370 | (atomic_inc_return(&vmbus_connection.next_gpadl_handle) - 1); |
371 | 371 | ||
372 | ret = create_gpadl_header(kbuffer, size, &msginfo, &msgcount); | 372 | ret = create_gpadl_header(kbuffer, size, &msginfo, &msgcount); |
373 | if (ret) | 373 | if (ret) |