Date: Sat, 19 Feb 2000 23:29:44 +0900 From: HOSOBUCHI Noriyuki <hoso@buchi.tama.or.jp> To: bugs@freebsd.org Cc: hoso@buchi.tama.or.jp Subject: sysinstall memory leak (2.2-BETA) Message-ID: <200002191429.XAA01311@mamedas.buchi.tama.or.jp>
next in thread | raw e-mail | index | archive | help
I found a bug in sysinstall ( release/sysinstall/uc_scsi.c ). This patch will fix kernel panic with message 'panic: can't do anything without my init' when updating kernel params. (Problem report kern/2450) Tested Version: 2.2-Beta (FreeBSD(98)- 2.2-BETA-98) *** uc_scsi.c.ORG Tue Feb 18 07:20:53 1997 --- uc_scsi.c Tue Feb 18 07:21:12 1997 *************** *** 163,169 **** sbp=(struct uc_scsibus *)realloc(sbp, sizeof(struct uc_scsibus)* (nscsibus+1)); ! sbpc=sbp+nscsibus+1; bzero(sbpc, sizeof(struct uc_scsibus)); kp->scsi_devp=sp; --- 163,169 ---- sbp=(struct uc_scsibus *)realloc(sbp, sizeof(struct uc_scsibus)* (nscsibus+1)); ! sbpc=sbp+nscsibus; bzero(sbpc, sizeof(struct uc_scsibus)); kp->scsi_devp=sp; ---- hoso@buchi.tama.or.jp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002191429.XAA01311>