[patch 31/38] CKRM e18: Fix a bug in the use of classtype

Gerrit Huizenga
2005-06-23T07:58:15Z

[-- Attachment #1: ckrm-rbce_class_del_crash --]
[-- Type: text/plain, Size: 836 bytes --]

Fix a bug using classtype

Signed-Off-By: Matt Helsley <matthltc@us.ibm.com>
Signed-Off-By: Gerrit Huizenga <gh@us.ibm.com>

---------------------------------------------------------------------

Index: linux-2.6.12-ckrm1/kernel/ckrm/rbce/rbce_core.c
===================================================================
--- linux-2.6.12-ckrm1.orig/kernel/ckrm/rbce/rbce_core.c 2005-06-20 15:04:53.000000000 -0700
+++ linux-2.6.12-ckrm1/kernel/ckrm/rbce/rbce_core.c 2005-06-20 15:37:50.000000000 -0700
@@ -60,7 +60,7 @@ rbce_class_deletecb(const char *classnam
#endif
notify_class_action(cls, 0);
cls->classobj = NULL;
- list_for_each_entry(pos, &rules_list[cls->classtype], link) {
+ list_for_each_entry(pos, &rules_list[classtype], link) {
rule = (struct rbce_rule *)pos;
if (rule->target_class) {
if (!strcmp

--