eCryptfs: initialize payload_len in keystore.c
authorSimon Que <sque@chromium.org>
Thu, 17 Jan 2013 19:18:20 +0000 (11:18 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:41 +0000 (13:34 +0000)
commit8264be3726a0d05711b1df810f2181c48e4c4cf0
treee54ea36f33b0dcf8788f6c994e672b8a15d8093b
parent8434628c8fcfbce59c78b2a48d2e405e901c19d3
eCryptfs: initialize payload_len in keystore.c

commit fa5199648e273a5e3e80aca41c1eb53700438dc1 upstream.

This is meant to remove a compiler warning.  It should not make any
functional change.

payload_len should be initialized when it is passed to
write_tag_64_packet() as a pointer.  If that call fails, this function
should return early, and payload_len won't be used.

Signed-off-by: Simon Que <sque@chromium.org>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ecryptfs/keystore.c