]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: fsl_qe_udc: Check for muram allocation errors
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Sat, 8 Nov 2008 17:51:48 +0000 (20:51 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Jan 2009 17:59:52 +0000 (09:59 -0800)
commitcd40c4c45eaedc289d2e1cc33b18a49a211f0f82
treeba98d97ca7ec7f8abc88f44845c691830b4b4e9e
parent011b15df465745474e3ec85482633685933ed5a7
USB: fsl_qe_udc: Check for muram allocation errors

The QE UDC doesn't check for cpm_muram_alloc() return values, this
might cause all sorts of misbehaviour when cpm_muram_alloc() failed
to allocate the muram memory.

While at at, change few dev_dbg() calls to dev_err(), so that the
driver would not die silently.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/fsl_qe_udc.c