diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 15:08:05 +0200 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 15:08:18 +0200 | 
| commit | e060c38434b2caa78efe7cedaff4191040b65a15 (patch) | |
| tree | 407361230bf6733f63d8e788e4b5e6566ee04818 /fs/cifs/link.c | |
| parent | 10e4ac572eeffe5317019bd7330b6058a400dfc2 (diff) | |
| parent | cc39c6a9bbdebfcf1a7dee64d83bf302bc38d941 (diff) | |
| download | olio-linux-3.10-e060c38434b2caa78efe7cedaff4191040b65a15.tar.xz olio-linux-3.10-e060c38434b2caa78efe7cedaff4191040b65a15.zip  | |
Merge branch 'master' into for-next
Fast-forward merge with Linus to be able to merge patches
based on more recent version of the tree.
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 556b1a0b54d..db3f18cdf02 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)  		cERROR(1, "%s: Could not init md5 shash\n", __func__);  		goto symlink_hash_err;  	} -	crypto_shash_update(&sdescmd5->shash, link_str, link_len); +	rc = crypto_shash_update(&sdescmd5->shash, link_str, link_len); +	if (rc) { +		cERROR(1, "%s: Could not update iwth link_str\n", __func__); +		goto symlink_hash_err; +	}  	rc = crypto_shash_final(&sdescmd5->shash, md5_hash); +	if (rc) +		cERROR(1, "%s: Could not generate md5 hash\n", __func__);  symlink_hash_err:  	crypto_free_shash(md5);  |