mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-19 16:14:13 +08:00
fuse: Initialize total_len in fuse_retrieve()
fs/fuse/dev.c:1357: warning: ‘total_len’ may be used uninitialized in this function Initialize total_len to zero, else its value will be undefined. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
parent
899611ee7d
commit
0157443c56
@ -1354,7 +1354,7 @@ static int fuse_retrieve(struct fuse_conn *fc, struct inode *inode,
|
|||||||
loff_t file_size;
|
loff_t file_size;
|
||||||
unsigned int num;
|
unsigned int num;
|
||||||
unsigned int offset;
|
unsigned int offset;
|
||||||
size_t total_len;
|
size_t total_len = 0;
|
||||||
|
|
||||||
req = fuse_get_req(fc);
|
req = fuse_get_req(fc);
|
||||||
if (IS_ERR(req))
|
if (IS_ERR(req))
|
||||||
|
Loading…
Reference in New Issue
Block a user