Re: confusion in validation of rec_len in ext2_add_link

2009-01-01 Thread Manish Katiyar
On Tue, Dec 30, 2008 at 11:15 AM, Manish Katiyar wrote: > Hi, > > I was trying to understand the purpose of the below check for > validating rec_len in the function ext2_add_link(). Before reaching > line 515 we call ext2_get_page() which checks for valid entries on the > page and thus validates t

confusion in validation of rec_len in ext2_add_link

2008-12-29 Thread Manish Katiyar
Hi, I was trying to understand the purpose of the below check for validating rec_len in the function ext2_add_link(). Before reaching line 515 we call ext2_get_page() which checks for valid entries on the page and thus validates the rec_len too. And then we call the lock_page(), so is this check r