diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2015-01-20 16:45:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-25 18:18:00 +0100 |
commit | 9c3a6f7e476fc4961297fc66b1177f9f8c8dd238 (patch) | |
tree | 7d6f81136568a5b061b4281d747d16a45ce74a73 /drivers/oprofile | |
parent | pcmcia: fix incorrect bracketing on a test (diff) | |
download | linux-9c3a6f7e476fc4961297fc66b1177f9f8c8dd238.tar.xz linux-9c3a6f7e476fc4961297fc66b1177f9f8c8dd238.zip |
Drivers: hv: check vmbus_device_create() return value in vmbus_process_offer()
vmbus_device_create() result is not being checked in vmbus_process_offer() and
it can fail if kzalloc() fails. Add the check and do minor cleanup to avoid
additional duplication of "free_channel(); return;" block.
Reported-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/oprofile')
0 files changed, 0 insertions, 0 deletions