From 29108787f706edecf94542f310a12f842f7560b9 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Sat, 3 Aug 1996 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1996-08-03 --- pc/devata.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pc/devata.c b/pc/devata.c index f7d45f8b73cf8003267a9fecef091703e7f2b34e..a72e99befba48ae846b5ecc1c59e71a6db1c4f43 100644 --- a/pc/devata.c +++ b/pc/devata.c @@ -640,6 +640,8 @@ ataclose(Chan *c) return; dp = atadrive[DRIVE(c->qid.path)]; + if(dp == 0) + return; p = &dp->p[PART(c->qid.path)]; if(strcmp(p->name, "partition") != 0) return;