ref: 75f0c02235bb0dcf13f0bf55d0ccdd68906acfae
parent: 21199b197135cd7ed17ba2273c9454b51bde8ded
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++;
--
⑨