diff options
-rw-r--r-- | drivers/pps/clients/pps_parport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pps/clients/pps_parport.c b/drivers/pps/clients/pps_parport.c index 38a8bbe74810..83797d89c30f 100644 --- a/drivers/pps/clients/pps_parport.c +++ b/drivers/pps/clients/pps_parport.c | |||
@@ -195,7 +195,7 @@ static void parport_detach(struct parport *port) | |||
195 | struct pps_client_pp *device; | 195 | struct pps_client_pp *device; |
196 | 196 | ||
197 | /* FIXME: oooh, this is ugly! */ | 197 | /* FIXME: oooh, this is ugly! */ |
198 | if (strcmp(pardev->name, KBUILD_MODNAME)) | 198 | if (!pardev || strcmp(pardev->name, KBUILD_MODNAME)) |
199 | /* not our port */ | 199 | /* not our port */ |
200 | return; | 200 | return; |
201 | 201 | ||