diff options
Diffstat (limited to 'fs/cifs/link.c')
-rw-r--r-- | fs/cifs/link.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c index 556b1a0b54de..db3f18cdf024 100644 --- a/fs/cifs/link.c +++ b/fs/cifs/link.c | |||
@@ -74,8 +74,14 @@ symlink_hash(unsigned int link_len, const char *link_str, u8 *md5_hash) | |||
74 | cERROR(1, "%s: Could not init md5 shash\n", __func__); | 74 | cERROR(1, "%s: Could not init md5 shash\n", __func__); |
75 | goto symlink_hash_err; | 75 | goto symlink_hash_err; |
76 | } | 76 | } |
77 | crypto_shash_update(&sdescmd5->shash, link_str, link_len); | 77 | rc = crypto_shash_update(&sdescmd5->shash, link_str, link_len); |
78 | if (rc) { | ||
79 | cERROR(1, "%s: Could not update iwth link_str\n", __func__); | ||
80 | goto symlink_hash_err; | ||
81 | } | ||
78 | rc = crypto_shash_final(&sdescmd5->shash, md5_hash); | 82 | rc = crypto_shash_final(&sdescmd5->shash, md5_hash); |
83 | if (rc) | ||
84 | cERROR(1, "%s: Could not generate md5 hash\n", __func__); | ||
79 | 85 | ||
80 | symlink_hash_err: | 86 | symlink_hash_err: |
81 | crypto_free_shash(md5); | 87 | crypto_free_shash(md5); |