[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20091021224520.GA8569@suse.de>
Date: Wed, 21 Oct 2009 15:45:20 -0700
From: Greg KH <gregkh@...e.de>
To: Haiyang Zhang <haiyangz@...rosoft.com>
Cc: Hank Janssen <hjanssen@...rosoft.com>,
"'linux-kernel@...r.kernel.org'" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] Fix null pointer error after vmbus loading
On Wed, Oct 21, 2009 at 07:24:23PM +0000, Haiyang Zhang wrote:
> From: Haiyang Zhang <haiyangz@...rosoft.com>
>
> Fix null pointer error after vmbus loading.
>
> Cc: Greg Kroah-Hartman <gregkh@...e.de>
> Signed-off-by: Hank Janssen <hjanssen@...rosoft.com>
> Signed-off-by: Haiyang Zhang <haiyangz@...rosoft.com>
>
> ---
> diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c
> index 582318f..11431cc 100644
> --- a/drivers/staging/hv/vmbus_drv.c
> +++ b/drivers/staging/hv/vmbus_drv.c
> @@ -538,9 +538,10 @@ static int vmbus_child_device_register(struct hv_device *root_device_obj,
> child_device_ctx);
>
> /* Make sure we are not registered already */
> - if (strlen(dev_name(&child_device_ctx->device)) != 0) {
> + if (dev_name(&child_device_ctx->device) != NULL &&
> + strlen(dev_name(&child_device_ctx->device)) != 0) {
Also, this patch was sent in html format, and all of the tabs were
converted to spaces, making it impossible to apply.
Please read the file, Documentation/email-clients.txt and follow the
suggestions there in order to be able to send patches that will both
appear on the linux-kernel mailing list, and be able to be applied
properly.
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists