diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2016-09-02 14:58:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-02 17:22:51 +0200 |
commit | 98f531b10d23e3c28e8d34c0e88822a81231b3c2 (patch) | |
tree | 1865a01afd742dedea81ee61fadfe0ec4f6456c9 /drivers/hv/hyperv_vmbus.h | |
parent | serial: pch_uart: Add support for reading clock-frequency from DT (diff) | |
download | linux-98f531b10d23e3c28e8d34c0e88822a81231b3c2.tar.xz linux-98f531b10d23e3c28e8d34c0e88822a81231b3c2.zip |
Drivers: hv: cleanup vmbus_open() for wrap around mappings
In preparation for doing wrap around mappings for ring buffers cleanup
vmbus_open() function:
- check that ring sizes are PAGE_SIZE aligned (they are for all in-kernel
drivers now);
- kfree(open_info) on error only after we kzalloc() it (not an issue as it
is valid to call kfree(NULL);
- rename poorly named labels;
- use alloc_pages() instead of __get_free_pages() as we need struct page
pointer for future.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Tested-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hyperv_vmbus.h')
0 files changed, 0 insertions, 0 deletions