diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-03-18 22:27:18 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-03-18 22:27:18 -0500 |
commit | e572ec7e4e432de7ecf7bd2e62117646fa64e518 (patch) | |
tree | 56b4b738fb566128d2db6d62aed28cfd41b5398a /block/elevator.c | |
parent | 3d1ab40f4c20767afbd361b258a531d73e3e6fc2 (diff) | |
download | op-kernel-dev-e572ec7e4e432de7ecf7bd2e62117646fa64e518.zip op-kernel-dev-e572ec7e4e432de7ecf7bd2e62117646fa64e518.tar.gz |
[PATCH] fix rmmod problems with elevator attributes, clean them up
Diffstat (limited to 'block/elevator.c')
-rw-r--r-- | block/elevator.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/block/elevator.c b/block/elevator.c index 0d2db53..db3d0d8 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -699,11 +699,12 @@ int elv_register_queue(struct request_queue *q) error = kobject_add(&e->kobj); if (!error) { - struct attribute **attr = e->elevator_type->elevator_attrs; + struct elv_fs_entry *attr = e->elevator_type->elevator_attrs; if (attr) { - while (*attr) { - if (sysfs_create_file(&e->kobj,*attr++)) + while (attr->attr.name) { + if (sysfs_create_file(&e->kobj, &attr->attr)) break; + attr++; } } kobject_uevent(&e->kobj, KOBJ_ADD); |