lkml.org 
[lkml]   [2014]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.17 049/146] Drivers: hv: vmbus: Fix a bug in vmbus_open()
    Date
    3.17-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: "K. Y. Srinivasan" <kys@microsoft.com>

    commit 45d727cee9e200f5b351528b9fb063b69cf702c8 upstream.

    Fix a bug in vmbus_open() and properly propagate the error. I would
    like to thank Dexuan Cui <decui@microsoft.com> for identifying the
    issue.

    Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
    Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/hv/channel.c | 4 +++-
    1 file changed, 3 insertions(+), 1 deletion(-)

    --- a/drivers/hv/channel.c
    +++ b/drivers/hv/channel.c
    @@ -165,8 +165,10 @@ int vmbus_open(struct vmbus_channel *new
    ret = vmbus_post_msg(open_msg,
    sizeof(struct vmbus_channel_open_channel));

    - if (ret != 0)
    + if (ret != 0) {
    + err = ret;
    goto error1;
    + }

    t = wait_for_completion_timeout(&open_info->waitevent, 5*HZ);
    if (t == 0) {



    \
     
     \ /
      Last update: 2014-10-28 09:41    [W:4.028 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site