ref: 75ee3b3081edab418e443d499ec28ceda9121e93
parent: 82438139d670b2e8ca54480b888b3a904994e274
author: BurnZeZ <devnull@localhost>
date: Mon Apr 15 15:48:03 EDT 2019
devsd: fix panic when using "delpart" to remove a partition that was already removed
--- a/sys/src/9/port/devsd.c
+++ b/sys/src/9/port/devsd.c
@@ -154,6 +154,8 @@
*/
pp = unit->part;
for(i = 0; i < unit->npart; i++){
+ if(!pp->valid)
+ continue;
if(strcmp(name, pp->name) == 0)
break;
pp++;