diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2013-05-29 04:09:32 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2013-05-29 04:09:32 +0000 |
| commit | f1c84e5d85da80b0ade587ff38174beb551d20a1 (patch) | |
| tree | 3444d896795b169f71df416832298d84f9e854a6 /sys/dev/mps | |
| parent | cb2c6111c38a4d1b92ac8f89b699b43e32452a7d (diff) | |
Notes
Diffstat (limited to 'sys/dev/mps')
| -rw-r--r-- | sys/dev/mps/mps_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mps/mps_user.c b/sys/dev/mps/mps_user.c index 8896fb29c867..f3f0eba1f66b 100644 --- a/sys/dev/mps/mps_user.c +++ b/sys/dev/mps/mps_user.c @@ -208,8 +208,8 @@ mps_detach_user(struct mps_softc *sc) { /* XXX: do a purge of pending requests? */ - destroy_dev(sc->mps_cdev); - + if (sc->mps_cdev != NULL) + destroy_dev(sc->mps_cdev); } static int |
