[PATCH] Xen bug-fixes for 3.2 (v1)

From: Konrad Rzeszutek Wilk
Date: Thu Sep 29 2011 - 15:53:39 EST


Most of them were discovered by running Dan's static analyzer
(git://repo.or.cz/smatch.git). Some of them look/sound familiar
which probably means at some point somebody emailed me it and
I forgot it - if that is the case, please point me to it so I can
use that instead of these.

Please review.

Konrad Rzeszutek Wilk (9):
xen/pciback: Do not dereference psdev during printk when it is NULL.
xen/pciback: Return proper error code from sscanf.
xen/pciback: Check if the device is found instead of blindly assuming so.
xen/events: BUG() when we can't allocate our event->irq array.
xen/events: Don't check the info for NULL as it is already done.
xen/irq: If we fail during msi_capability_init return proper error code.
xen/xenbus: Check before dereferencing it.
xen/enlighten: Fix compile warnings.
xen/p2m/debugfs: Fix potential pointer exception.

arch/x86/pci/xen.c | 10 +++++++---
arch/x86/xen/enlighten.c | 2 +-
arch/x86/xen/p2m.c | 4 ++--
drivers/xen/events.c | 11 +++++++----
drivers/xen/xen-pciback/pci_stub.c | 12 ++++++++----
drivers/xen/xenbus/xenbus_probe_backend.c | 3 ++-
6 files changed, 27 insertions(+), 15 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/