summaryrefslogtreecommitdiff
path: root/drivers/mtd/ubi/cdev.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-20 19:04:09 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-20 19:13:53 +0300
commit36b477d005fbda29e7581c3cef7ee31a59d8970b (patch)
treecacdcc1b18bfce9f627a87c115d4c6192a626b8b /drivers/mtd/ubi/cdev.c
parent8c4c19f1367435afdc16ac122a2a95a4d6cff9f0 (diff)
downloadlinux-36b477d005fbda29e7581c3cef7ee31a59d8970b.tar.xz
UBI: fix resource de-allocation
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>
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
0 files changed, 0 insertions, 0 deletions