diff options
| author | Scott Long <scottl@FreeBSD.org> | 2005-04-29 04:47:11 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2005-04-29 04:47:11 +0000 |
| commit | a304e92b2b094eb74e1fc394fd1b5fe8fa78f8be (patch) | |
| tree | 27093600d8ea690a113b1c61a17090d9960919c9 /sys/dev/asr/asr.c | |
| parent | a8e6f0b6fa371d7687a595d54ff813f4fce89e02 (diff) | |
Notes
Diffstat (limited to 'sys/dev/asr/asr.c')
| -rw-r--r-- | sys/dev/asr/asr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c index a6dff07b6d41..56a9462e3e18 100644 --- a/sys/dev/asr/asr.c +++ b/sys/dev/asr/asr.c @@ -2582,7 +2582,8 @@ asr_attach(device_t tag) */ sc->ha_devt = make_dev(&asr_cdevsw, unit, UID_ROOT, GID_OPERATOR, 0640, "asr%d", unit); - (void)make_dev_alias(sc->ha_devt, "rdpti%d", unit); + if (sc->ha_devt != NULL) + (void)make_dev_alias(sc->ha_devt, "rdpti%d", unit); sc->ha_devt->si_drv1 = sc; return(0); } /* asr_attach */ |
