projects
/
kernel
/
swap-modules.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a00cd6
)
[FIX] Erroneous files struct put
93/44693/1
author
Vasiliy Ulyanov
<v.ulyanov@samsung.com>
Fri, 24 Jul 2015 17:45:54 +0000
(20:45 +0300)
committer
Vasiliy Ulyanov
<v.ulyanov@samsung.com>
Fri, 24 Jul 2015 17:45:54 +0000
(20:45 +0300)
There is no need to make a put_files_struct in case when
get_files_struct returns NULL.
Change-Id: Ia87af58150e96f07f3a5f7e2bd2ee3a9a185d210
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
parser/usm_msg.c
patch
|
blob
|
history
diff --git
a/parser/usm_msg.c
b/parser/usm_msg.c
index
2016b0b
..
041d92e
100644
(file)
--- a/
parser/usm_msg.c
+++ b/
parser/usm_msg.c
@@
-533,10
+533,8
@@
static int pack_status_info(void *data, size_t size, struct task_struct *task)
const size_t old_size = size;
files = swap_get_files_struct(task);
- if (files == NULL) {
- ret = -EIO;
- goto put_fstruct;
- }
+ if (files == NULL)
+ return -EIO;
/* pack pid */
*((u32 *)data) = (u32)task->tgid;