Staging: ipack/bridges/tpci200: check if the remove function is available
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 23 May 2012 13:54:44 +0000 (15:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jun 2012 05:14:08 +0000 (14:14 +0900)
commit786d986ea25632e3d8e7ad5ac2780861ff2b654f
treeed2261af2454c7519f61828c44b0d29bf0387406
parent6ad0c486a4e702fa059ea24c2585c416f01f4664
Staging: ipack/bridges/tpci200: check if the remove function is available

To avoid a dereference of a NULL pointer, the availability of the function is
checked before its use.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/bridges/tpci200.c