aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/src/ubiupdatevol.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-02 18:19:47 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-20 12:48:41 +0300
commitb722a1afe37eab14a5482c9e1efd5e6d625fa171 (patch)
treee60ffe1f364d50c21c66d5204004b25a67973450 /ubi-utils/src/ubiupdatevol.c
parent43022f637813719817b4c966b36bb4453c75419c (diff)
fs-tests: integck: fix segfault
Commit 1394a46213e8180e1233ca6d4811e7c77d49b1e0 was a good idea, but it introduced a segfault - files can be unlinked and 'file->links' is NULL, it is bad idea to unconditionally dereference it with 'file->links->name'. This patch introduces a helper function which takes care of the situation with unlinked files, plus it adds few assertions. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src/ubiupdatevol.c')
0 files changed, 0 insertions, 0 deletions