summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/pps/clients/pps_parport.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/pps/clients/pps_parport.c')
-rw-r--r--kernel/drivers/pps/clients/pps_parport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/pps/clients/pps_parport.c b/kernel/drivers/pps/clients/pps_parport.c
index 38a8bbe74..83797d89c 100644
--- a/kernel/drivers/pps/clients/pps_parport.c
+++ b/kernel/drivers/pps/clients/pps_parport.c
@@ -195,7 +195,7 @@ static void parport_detach(struct parport *port)
struct pps_client_pp *device;
/* FIXME: oooh, this is ugly! */
- if (strcmp(pardev->name, KBUILD_MODNAME))
+ if (!pardev || strcmp(pardev->name, KBUILD_MODNAME))
/* not our port */
return;