All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xenbus: fix possible crash in xenbus_uevent_backend
@ 2011-07-18 12:40 Olaf Hering
  2011-07-18 13:11 ` Ian Campbell
  2011-07-18 13:18 ` Jan Beulich
  0 siblings, 2 replies; 6+ messages in thread
From: Olaf Hering @ 2011-07-18 12:40 UTC (permalink / raw)
  To: xen-devel


Fix possible NULL pointer crash in xenbus_uevent_backend().
The variable to check for should probably be bus.

Signed-off-by: Olaf Hering <olaf@aepfle.de>

Index: linux-3.0-rc7-xen-kexec/drivers/xen/xenbus/xenbus_probe_backend.c
===================================================================
--- linux-3.0-rc7-xen-kexec.orig/drivers/xen/xenbus/xenbus_probe_backend.c
+++ linux-3.0-rc7-xen-kexec/drivers/xen/xenbus/xenbus_probe_backend.c
@@ -104,7 +104,7 @@ static int xenbus_uevent_backend(struct
 
 	xdev = to_xenbus_device(dev);
 	bus = container_of(xdev->dev.bus, struct xen_bus_type, bus);
-	if (xdev == NULL)
+	if (bus == NULL)
 		return -ENODEV;
 
 	/* stuff we want to pass to /sbin/hotplug */
Index: linux-3.0-rc7-xen-kexec/include/linux/compiler.h

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-18 15:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-18 12:40 [PATCH] xenbus: fix possible crash in xenbus_uevent_backend Olaf Hering
2011-07-18 13:11 ` Ian Campbell
2011-07-18 13:21   ` Jan Beulich
2011-07-18 13:26     ` Ian Campbell
2011-07-18 15:02   ` Olaf Hering
2011-07-18 13:18 ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.