]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: ci13xx_udc: fix potential crash in irq handler
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 18:37:18 +0000 (11:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 18:37:18 +0000 (11:37 -0700)
commitfc8fa59e107ac41f9cf5723b3aea1371dbd6ea0f
tree5a6aba2d397baab36eac55e2b4f58faa710a6836
parentc007b7fd257821258f75c8001ecd6a78391abc2a
USB: gadget: ci13xx_udc: fix potential crash in irq handler

As pointed out by Dan Carpenter, we should not be trying to call
dev_err() on a structure that was previously determined to be NULL,
that's just foolish and asking for trouble.

So just delete the message, it's not going to do anyone any good to have
it anyway.

This problem was caused by fa144ddc440e: "usb: gadget: ci13xxx: replace
home-brewed logging with dev_{err,warn,info}"

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/ci13xxx_udc.c