X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Flogfs%2Fdev_mtd.c;h=427bb73e298f197d4cfc73b17baeffdd1c848c5d;hb=386fa69f4702754c71cb9db9aa431edc676d690d;hp=9c501449450dc9be6891e5d9c1a035ca31b5687b;hpb=7483d45f0aee3afc0646d185cabd4af9f6cab58c;p=karo-tx-linux.git diff --git a/fs/logfs/dev_mtd.c b/fs/logfs/dev_mtd.c index 9c501449450d..427bb73e298f 100644 --- a/fs/logfs/dev_mtd.c +++ b/fs/logfs/dev_mtd.c @@ -245,8 +245,8 @@ static int logfs_mtd_can_write_buf(struct super_block *sb, u64 ofs) goto out; if (memchr_inv(buf, 0xff, super->s_writesize)) err = -EIO; - kfree(buf); out: + kfree(buf); return err; }