mailbox: bcm-pdc: potential NULL dereference in pdc_shutdown()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Aug 2016 05:30:31 +0000 (08:30 +0300)
committerJassi Brar <jaswinder.singh@linaro.org>
Mon, 29 Aug 2016 13:11:15 +0000 (18:41 +0530)
commit068cf29eca4ef25556496635b978143b170b862c
tree9c188a417de5fe9051924fdd13f525865811736a
parente0c6fba45ab730afc22fa01ac1c42459893252ec
mailbox: bcm-pdc: potential NULL dereference in pdc_shutdown()

We can't pass NULL pointers to pdc_ring_free() so I moved the check for
NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm-pdc-mailbox.c