Re: [PATCH 02/16 v3] pramfs: super operations

2010-11-14 Thread Marco Stornelli
2010/11/15 yidong zhang : > hi Marco > >> +       retval = 0; >> + out: >> +       if (retval && sbi->virt_addr) { >> +               iounmap(sbi->virt_addr); >> +               release_mem_region(sbi->phys_addr, initsize); >> +               kfree(sbi); >> +       } >> + >> +       return retval;

Re: [PATCH 02/16 v3] pramfs: super operations

2010-11-14 Thread yidong zhang
hi Marco > +       retval = 0; > + out: > +       if (retval && sbi->virt_addr) { > +               iounmap(sbi->virt_addr); > +               release_mem_region(sbi->phys_addr, initsize); > +               kfree(sbi); > +       } > + > +       return retval; > +} > + I think kfree(sbi) should n