some dangling code in fs/ext2/namei.c, patch attached

afei@jhu.edu
Sat, 18 Dec 1999 01:52:21 -0500 (EST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-851401618-945499941=:25352
Content-Type: TEXT/PLAIN; charset=US-ASCII

fs/ext2/namei.c
279L:
de1 = (struct ext2_dir_entry_2 *)((char *) de +
EXT2_DIR_REC_LEN(de->name_len));
de1->rec_len = cpu_to_le16(le16_to_cpu(de->rec_len) -
EXT2_DIR_REC_LEN(de->name_len));
de->rec_len =cpu_to_le16(EXT2_DIR_REC_LEN(de->name_len));
de = de1;
The line computes de->rec_len is not necessary, cause de is reset later on.
Patch attached. So far it is not fixed in 2.3 yet.
# patch namei.c namei.patch
will correctly modify namei.c

Fei

*~~~~~~~~~~~~~~~~~~~~~+_____________________+~~~~~~~~~~~~~~~~~~~*
* Email:afei@jhu.edu | WWW: http://aa.eps.jhu.edu/~feiliu *
* (410)889-9876(H) | Johns Hopkins Univ. | (410)516-7047(O) *
*-------------------+_____________________+-----------------*

---559023410-851401618-945499941=:25352
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="namei.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.05.9912180152210.25352@aa.eps.jhu.edu>
Content-Description: namei.patch
Content-Disposition: attachment; filename="namei.patch"

MjgzZDI4Mg0KPCAJCQkJZGUtPnJlY19sZW4gPSBjcHVfdG9fbGUxNihFWFQy
X0RJUl9SRUNfTEVOKGRlLT5uYW1lX2xlbikpOw0K
---559023410-851401618-945499941=:25352--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/