projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5f5c4d
)
Staging: zcache: signedness bug in tmem_get()
author
Dan Carpenter
<error27@gmail.com>
Tue, 9 Aug 2011 18:01:33 +0000
(21:01 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 23 Aug 2011 21:52:20 +0000
(14:52 -0700)
"ret" needs to be signed for the error handling to work properly.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zcache/tmem.c
patch
|
blob
|
history
diff --git
a/drivers/staging/zcache/tmem.c
b/drivers/staging/zcache/tmem.c
index 975e34bcd722aecf4ed753a9b86ad25e90c5d19c..1ca66ea9b28123825a4db9b08d8621da909c8c66 100644
(file)
--- a/
drivers/staging/zcache/tmem.c
+++ b/
drivers/staging/zcache/tmem.c
@@
-604,7
+604,7
@@
int tmem_get(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index,
struct tmem_obj *obj;
void *pampd;
bool ephemeral = is_ephemeral(pool);
-
uint32_
t ret = -1;
+
in
t ret = -1;
struct tmem_hashbucket *hb;
bool free = (get_and_free == 1) || ((get_and_free == 0) && ephemeral);
bool lock_held = false;