UBI: fix resource de-allocation
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 20 Jan 2009 16:04:09 +0000 (18:04 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 17 Jul 2009 13:04:18 +0000 (16:04 +0300)
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: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found