• Artem Bityutskiy's avatar
    UBI: fix resource de-allocation · 36b477d0
    Artem Bityutskiy authored
    GregKH asked to fix UBI which has fake device release method. Indeed,
    we have to free UBI device description object from the release method,
    because otherwise we'll oops is someone opens a UBI device sysfs file,
    then the device is removed, and he reads the file. With this fix, he
    will get -ENODEV instead of an oops.
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    36b477d0
build.c 34 KB