From 4f0fffb993a09c3f592a2f79c79ff489e796960e Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 22 Jul 2003 16:29:19 +0000 Subject: [PATCH] - in ll_umount_begin, protect against NULL obd - fix debug subsystem in obdclass/obdo.c - remove zero-length buffer check from lustre_msg_buf; we already have the minimum-size check, and zero length is common in the "no EA yet" getattr case --- lustre/llite/llite_lib.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 821e6fe..e64c5da 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -922,11 +922,16 @@ void ll_umount_begin(struct super_block *sb) struct ll_sb_info *sbi = ll_s2sbi(sb); struct obd_device *obd; struct obd_ioctl_data ioc_data = { 0 }; - ENTRY; CDEBUG(D_VFSTRACE, "VFS Op:\n"); obd = class_conn2obd(&sbi->ll_mdc_conn); + if (obd == NULL) { + CERROR("Invalid MDC connection handle "LPX64"\n", + sbi->ll_mdc_conn.cookie); + EXIT; + return; + } obd->obd_no_recov = 1; obd_iocontrol(IOC_OSC_SET_ACTIVE, &sbi->ll_mdc_conn, sizeof ioc_data, &ioc_data, NULL); -- 1.8.3.1