mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [ONE-LINE PATCH](Silly?) bug in ext2/namei.c, 2.2.x, 2.4.x
@ 2001-02-15 19:51 Juan
  0 siblings, 0 replies; only message in thread
From: Juan @ 2001-02-15 19:51 UTC (permalink / raw)
  To: linux-kernel, Remy.Card

Hi!

I think that this is a bug. The buffer is always released except in this
case.

Bye.

----------------------------------------------------
*** /usr/src/linux-2.4.1/fs/ext2/namei.c        Tue Dec 12 16:48:22 2000
--- namei.c.new Thu Feb 15 20:42:45 2001
***************
*** 235,240 ****
--- 235,241 ----
                                return retval;
                        if (dir->i_size <= offset) {
                                if (dir->i_size == 0) {
+                                       brelse(bh);
                                        return -ENOENT;
                                }
----------------------------------------------------
-- 
D. Juan Piernas Cánovas
Departamento de Ingeniería y Tecnología de Computadores
Facultad de Informática. Universidad de Murcia
Campus de Espinardo - 30080 Murcia (SPAIN)
Tel.: +34968367657    Fax: +34968364151
email: piernas@ditec.um.es
PGP public key:
http://pgp.rediris.es:11371/pks/lookup?search=piernas%40ditec.um.es&op=index

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-15 19:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-15 19:51 [ONE-LINE PATCH](Silly?) bug in ext2/namei.c, 2.2.x, 2.4.x Juan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®