All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20190726224141.14044-8-ebiggers@kernel.org>

diff --git a/a/1.txt b/N1/1.txt
index f4d4d75..e63a924 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -239,7 +239,7 @@ index bd489433bba04..ce33c38955233 100644
 +		err = add_existing_master_key(key->payload.data[0], secret,
 +					      mk_spec);
 +		up_write(&key->sem);
-+		if (err = KEY_DEAD) {
++		if (err == KEY_DEAD) {
 +			/* Key being removed or needs to be removed */
 +			key_invalidate(key);
 +			key_put(key);
@@ -313,14 +313,15 @@ index bd489433bba04..ce33c38955233 100644
 +	list_for_each(pos, &mk->mk_decrypted_inodes)
 +		busy_count++;
 +
-+	if (busy_count = 0) {
++	if (busy_count == 0) {
 +		spin_unlock(&mk->mk_decrypted_inodes_lock);
 +		return 0;
 +	}
 +
 +	{
 +		/* select an example file to show for debugging purposes */
-+		struct inode *inode +			list_first_entry(&mk->mk_decrypted_inodes,
++		struct inode *inode =
++			list_first_entry(&mk->mk_decrypted_inodes,
 +					 struct fscrypt_info,
 +					 ci_master_key_link)->ci_inode;
 +		ino = inode->i_ino;
@@ -562,10 +563,11 @@ index a457f5aefde5a..6b35c550e87a4 100644
  	if (res)
  		goto out;
  
--	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL)
-+	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL) {
+-	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL)
++	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL) {
 +		if (master_key) {
-+			struct fscrypt_master_key *mk +				master_key->payload.data[0];
++			struct fscrypt_master_key *mk =
++				master_key->payload.data[0];
 +
 +			refcount_inc(&mk->mk_refcount);
 +			crypt_info->ci_master_key = key_get(master_key);
@@ -582,7 +584,7 @@ index a457f5aefde5a..6b35c550e87a4 100644
 +		up_read(&master_key->sem);
 +		key_put(master_key);
 +	}
- 	if (res = -ENOKEY)
+ 	if (res == -ENOKEY)
  		res = 0;
  	put_crypt_info(crypt_info);
 @@ -376,3 +437,39 @@ void fscrypt_free_inode(struct inode *inode)
diff --git a/a/content_digest b/N1/content_digest
index 0565f43..e33d3d3 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\020190726224141.14044-1-ebiggers@kernel.org\0"
  "From\0Eric Biggers <ebiggers@kernel.org>\0"
  "Subject\0[PATCH v7 07/16] fscrypt: add FS_IOC_REMOVE_ENCRYPTION_KEY ioctl\0"
- "Date\0Fri, 26 Jul 2019 22:41:32 +0000\0"
+ "Date\0Fri, 26 Jul 2019 15:41:32 -0700\0"
  "To\0linux-fscrypt@vger.kernel.org\0"
  "Cc\0Satya Tangirala <satyat@google.com>"
   linux-api@vger.kernel.org
@@ -255,7 +255,7 @@
  "+\t\terr = add_existing_master_key(key->payload.data[0], secret,\n"
  "+\t\t\t\t\t      mk_spec);\n"
  "+\t\tup_write(&key->sem);\n"
- "+\t\tif (err = KEY_DEAD) {\n"
+ "+\t\tif (err == KEY_DEAD) {\n"
  "+\t\t\t/* Key being removed or needs to be removed */\n"
  "+\t\t\tkey_invalidate(key);\n"
  "+\t\t\tkey_put(key);\n"
@@ -329,14 +329,15 @@
  "+\tlist_for_each(pos, &mk->mk_decrypted_inodes)\n"
  "+\t\tbusy_count++;\n"
  "+\n"
- "+\tif (busy_count = 0) {\n"
+ "+\tif (busy_count == 0) {\n"
  "+\t\tspin_unlock(&mk->mk_decrypted_inodes_lock);\n"
  "+\t\treturn 0;\n"
  "+\t}\n"
  "+\n"
  "+\t{\n"
  "+\t\t/* select an example file to show for debugging purposes */\n"
- "+\t\tstruct inode *inode +\t\t\tlist_first_entry(&mk->mk_decrypted_inodes,\n"
+ "+\t\tstruct inode *inode =\n"
+ "+\t\t\tlist_first_entry(&mk->mk_decrypted_inodes,\n"
  "+\t\t\t\t\t struct fscrypt_info,\n"
  "+\t\t\t\t\t ci_master_key_link)->ci_inode;\n"
  "+\t\tino = inode->i_ino;\n"
@@ -578,10 +579,11 @@
  " \tif (res)\n"
  " \t\tgoto out;\n"
  " \n"
- "-\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL)\n"
- "+\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL) {\n"
+ "-\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL)\n"
+ "+\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL) {\n"
  "+\t\tif (master_key) {\n"
- "+\t\t\tstruct fscrypt_master_key *mk +\t\t\t\tmaster_key->payload.data[0];\n"
+ "+\t\t\tstruct fscrypt_master_key *mk =\n"
+ "+\t\t\t\tmaster_key->payload.data[0];\n"
  "+\n"
  "+\t\t\trefcount_inc(&mk->mk_refcount);\n"
  "+\t\t\tcrypt_info->ci_master_key = key_get(master_key);\n"
@@ -598,7 +600,7 @@
  "+\t\tup_read(&master_key->sem);\n"
  "+\t\tkey_put(master_key);\n"
  "+\t}\n"
- " \tif (res = -ENOKEY)\n"
+ " \tif (res == -ENOKEY)\n"
  " \t\tres = 0;\n"
  " \tput_crypt_info(crypt_info);\n"
  "@@ -376,3 +437,39 @@ void fscrypt_free_inode(struct inode *inode)\n"
@@ -709,4 +711,4 @@
  "-- \n"
  2.22.0
 
-da3503693aa3253aa53152c6bf95f8f9e9519defdc03fca4a4e0ae7230d53f12
+89f882b4fb8290bb3997fb94a7c51a9af1f8b03b3d94fd89ea5048464a2a01d9

diff --git a/a/1.txt b/N2/1.txt
index f4d4d75..e63a924 100644
--- a/a/1.txt
+++ b/N2/1.txt
@@ -239,7 +239,7 @@ index bd489433bba04..ce33c38955233 100644
 +		err = add_existing_master_key(key->payload.data[0], secret,
 +					      mk_spec);
 +		up_write(&key->sem);
-+		if (err = KEY_DEAD) {
++		if (err == KEY_DEAD) {
 +			/* Key being removed or needs to be removed */
 +			key_invalidate(key);
 +			key_put(key);
@@ -313,14 +313,15 @@ index bd489433bba04..ce33c38955233 100644
 +	list_for_each(pos, &mk->mk_decrypted_inodes)
 +		busy_count++;
 +
-+	if (busy_count = 0) {
++	if (busy_count == 0) {
 +		spin_unlock(&mk->mk_decrypted_inodes_lock);
 +		return 0;
 +	}
 +
 +	{
 +		/* select an example file to show for debugging purposes */
-+		struct inode *inode +			list_first_entry(&mk->mk_decrypted_inodes,
++		struct inode *inode =
++			list_first_entry(&mk->mk_decrypted_inodes,
 +					 struct fscrypt_info,
 +					 ci_master_key_link)->ci_inode;
 +		ino = inode->i_ino;
@@ -562,10 +563,11 @@ index a457f5aefde5a..6b35c550e87a4 100644
  	if (res)
  		goto out;
  
--	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL)
-+	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL) {
+-	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL)
++	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL) {
 +		if (master_key) {
-+			struct fscrypt_master_key *mk +				master_key->payload.data[0];
++			struct fscrypt_master_key *mk =
++				master_key->payload.data[0];
 +
 +			refcount_inc(&mk->mk_refcount);
 +			crypt_info->ci_master_key = key_get(master_key);
@@ -582,7 +584,7 @@ index a457f5aefde5a..6b35c550e87a4 100644
 +		up_read(&master_key->sem);
 +		key_put(master_key);
 +	}
- 	if (res = -ENOKEY)
+ 	if (res == -ENOKEY)
  		res = 0;
  	put_crypt_info(crypt_info);
 @@ -376,3 +437,39 @@ void fscrypt_free_inode(struct inode *inode)
diff --git a/a/content_digest b/N2/content_digest
index 0565f43..3484737 100644
--- a/a/content_digest
+++ b/N2/content_digest
@@ -1,17 +1,17 @@
  "ref\020190726224141.14044-1-ebiggers@kernel.org\0"
  "From\0Eric Biggers <ebiggers@kernel.org>\0"
  "Subject\0[PATCH v7 07/16] fscrypt: add FS_IOC_REMOVE_ENCRYPTION_KEY ioctl\0"
- "Date\0Fri, 26 Jul 2019 22:41:32 +0000\0"
+ "Date\0Fri, 26 Jul 2019 15:41:32 -0700\0"
  "To\0linux-fscrypt@vger.kernel.org\0"
- "Cc\0Satya Tangirala <satyat@google.com>"
-  linux-api@vger.kernel.org
+ "Cc\0linux-fsdevel@vger.kernel.org"
+  linux-ext4@vger.kernel.org
   linux-f2fs-devel@lists.sourceforge.net
-  keyrings@vger.kernel.org
   linux-mtd@lists.infradead.org
+  linux-api@vger.kernel.org
   linux-crypto@vger.kernel.org
-  linux-fsdevel@vger.kernel.org
-  linux-ext4@vger.kernel.org
- " Paul Crowley <paulcrowley@google.com>\0"
+  keyrings@vger.kernel.org
+  Paul Crowley <paulcrowley@google.com>
+ " Satya Tangirala <satyat@google.com>\0"
  "\00:1\0"
  "b\0"
  "From: Eric Biggers <ebiggers@google.com>\n"
@@ -255,7 +255,7 @@
  "+\t\terr = add_existing_master_key(key->payload.data[0], secret,\n"
  "+\t\t\t\t\t      mk_spec);\n"
  "+\t\tup_write(&key->sem);\n"
- "+\t\tif (err = KEY_DEAD) {\n"
+ "+\t\tif (err == KEY_DEAD) {\n"
  "+\t\t\t/* Key being removed or needs to be removed */\n"
  "+\t\t\tkey_invalidate(key);\n"
  "+\t\t\tkey_put(key);\n"
@@ -329,14 +329,15 @@
  "+\tlist_for_each(pos, &mk->mk_decrypted_inodes)\n"
  "+\t\tbusy_count++;\n"
  "+\n"
- "+\tif (busy_count = 0) {\n"
+ "+\tif (busy_count == 0) {\n"
  "+\t\tspin_unlock(&mk->mk_decrypted_inodes_lock);\n"
  "+\t\treturn 0;\n"
  "+\t}\n"
  "+\n"
  "+\t{\n"
  "+\t\t/* select an example file to show for debugging purposes */\n"
- "+\t\tstruct inode *inode +\t\t\tlist_first_entry(&mk->mk_decrypted_inodes,\n"
+ "+\t\tstruct inode *inode =\n"
+ "+\t\t\tlist_first_entry(&mk->mk_decrypted_inodes,\n"
  "+\t\t\t\t\t struct fscrypt_info,\n"
  "+\t\t\t\t\t ci_master_key_link)->ci_inode;\n"
  "+\t\tino = inode->i_ino;\n"
@@ -578,10 +579,11 @@
  " \tif (res)\n"
  " \t\tgoto out;\n"
  " \n"
- "-\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL)\n"
- "+\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL) {\n"
+ "-\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL)\n"
+ "+\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL) {\n"
  "+\t\tif (master_key) {\n"
- "+\t\t\tstruct fscrypt_master_key *mk +\t\t\t\tmaster_key->payload.data[0];\n"
+ "+\t\t\tstruct fscrypt_master_key *mk =\n"
+ "+\t\t\t\tmaster_key->payload.data[0];\n"
  "+\n"
  "+\t\t\trefcount_inc(&mk->mk_refcount);\n"
  "+\t\t\tcrypt_info->ci_master_key = key_get(master_key);\n"
@@ -598,7 +600,7 @@
  "+\t\tup_read(&master_key->sem);\n"
  "+\t\tkey_put(master_key);\n"
  "+\t}\n"
- " \tif (res = -ENOKEY)\n"
+ " \tif (res == -ENOKEY)\n"
  " \t\tres = 0;\n"
  " \tput_crypt_info(crypt_info);\n"
  "@@ -376,3 +437,39 @@ void fscrypt_free_inode(struct inode *inode)\n"
@@ -709,4 +711,4 @@
  "-- \n"
  2.22.0
 
-da3503693aa3253aa53152c6bf95f8f9e9519defdc03fca4a4e0ae7230d53f12
+2a86e924d1ae7e16dc87a73f02fb8419888d156b767572753936ba1cbc80ceec

diff --git a/a/1.txt b/N3/1.txt
index f4d4d75..e83e5bc 100644
--- a/a/1.txt
+++ b/N3/1.txt
@@ -239,7 +239,7 @@ index bd489433bba04..ce33c38955233 100644
 +		err = add_existing_master_key(key->payload.data[0], secret,
 +					      mk_spec);
 +		up_write(&key->sem);
-+		if (err = KEY_DEAD) {
++		if (err == KEY_DEAD) {
 +			/* Key being removed or needs to be removed */
 +			key_invalidate(key);
 +			key_put(key);
@@ -313,14 +313,15 @@ index bd489433bba04..ce33c38955233 100644
 +	list_for_each(pos, &mk->mk_decrypted_inodes)
 +		busy_count++;
 +
-+	if (busy_count = 0) {
++	if (busy_count == 0) {
 +		spin_unlock(&mk->mk_decrypted_inodes_lock);
 +		return 0;
 +	}
 +
 +	{
 +		/* select an example file to show for debugging purposes */
-+		struct inode *inode +			list_first_entry(&mk->mk_decrypted_inodes,
++		struct inode *inode =
++			list_first_entry(&mk->mk_decrypted_inodes,
 +					 struct fscrypt_info,
 +					 ci_master_key_link)->ci_inode;
 +		ino = inode->i_ino;
@@ -562,10 +563,11 @@ index a457f5aefde5a..6b35c550e87a4 100644
  	if (res)
  		goto out;
  
--	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL)
-+	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL) {
+-	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL)
++	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL) {
 +		if (master_key) {
-+			struct fscrypt_master_key *mk +				master_key->payload.data[0];
++			struct fscrypt_master_key *mk =
++				master_key->payload.data[0];
 +
 +			refcount_inc(&mk->mk_refcount);
 +			crypt_info->ci_master_key = key_get(master_key);
@@ -582,7 +584,7 @@ index a457f5aefde5a..6b35c550e87a4 100644
 +		up_read(&master_key->sem);
 +		key_put(master_key);
 +	}
- 	if (res = -ENOKEY)
+ 	if (res == -ENOKEY)
  		res = 0;
  	put_crypt_info(crypt_info);
 @@ -376,3 +437,39 @@ void fscrypt_free_inode(struct inode *inode)
@@ -692,3 +694,10 @@ index 93d6eabaa7de4..cbe1ec46a4b56 100644
  
 -- 
 2.22.0
+
+
+
+_______________________________________________
+Linux-f2fs-devel mailing list
+Linux-f2fs-devel@lists.sourceforge.net
+https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
diff --git a/a/content_digest b/N3/content_digest
index 0565f43..b278296 100644
--- a/a/content_digest
+++ b/N3/content_digest
@@ -1,7 +1,7 @@
  "ref\020190726224141.14044-1-ebiggers@kernel.org\0"
  "From\0Eric Biggers <ebiggers@kernel.org>\0"
- "Subject\0[PATCH v7 07/16] fscrypt: add FS_IOC_REMOVE_ENCRYPTION_KEY ioctl\0"
- "Date\0Fri, 26 Jul 2019 22:41:32 +0000\0"
+ "Subject\0[f2fs-dev] [PATCH v7 07/16] fscrypt: add FS_IOC_REMOVE_ENCRYPTION_KEY ioctl\0"
+ "Date\0Fri, 26 Jul 2019 15:41:32 -0700\0"
  "To\0linux-fscrypt@vger.kernel.org\0"
  "Cc\0Satya Tangirala <satyat@google.com>"
   linux-api@vger.kernel.org
@@ -255,7 +255,7 @@
  "+\t\terr = add_existing_master_key(key->payload.data[0], secret,\n"
  "+\t\t\t\t\t      mk_spec);\n"
  "+\t\tup_write(&key->sem);\n"
- "+\t\tif (err = KEY_DEAD) {\n"
+ "+\t\tif (err == KEY_DEAD) {\n"
  "+\t\t\t/* Key being removed or needs to be removed */\n"
  "+\t\t\tkey_invalidate(key);\n"
  "+\t\t\tkey_put(key);\n"
@@ -329,14 +329,15 @@
  "+\tlist_for_each(pos, &mk->mk_decrypted_inodes)\n"
  "+\t\tbusy_count++;\n"
  "+\n"
- "+\tif (busy_count = 0) {\n"
+ "+\tif (busy_count == 0) {\n"
  "+\t\tspin_unlock(&mk->mk_decrypted_inodes_lock);\n"
  "+\t\treturn 0;\n"
  "+\t}\n"
  "+\n"
  "+\t{\n"
  "+\t\t/* select an example file to show for debugging purposes */\n"
- "+\t\tstruct inode *inode +\t\t\tlist_first_entry(&mk->mk_decrypted_inodes,\n"
+ "+\t\tstruct inode *inode =\n"
+ "+\t\t\tlist_first_entry(&mk->mk_decrypted_inodes,\n"
  "+\t\t\t\t\t struct fscrypt_info,\n"
  "+\t\t\t\t\t ci_master_key_link)->ci_inode;\n"
  "+\t\tino = inode->i_ino;\n"
@@ -578,10 +579,11 @@
  " \tif (res)\n"
  " \t\tgoto out;\n"
  " \n"
- "-\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL)\n"
- "+\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL) {\n"
+ "-\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL)\n"
+ "+\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL) {\n"
  "+\t\tif (master_key) {\n"
- "+\t\t\tstruct fscrypt_master_key *mk +\t\t\t\tmaster_key->payload.data[0];\n"
+ "+\t\t\tstruct fscrypt_master_key *mk =\n"
+ "+\t\t\t\tmaster_key->payload.data[0];\n"
  "+\n"
  "+\t\t\trefcount_inc(&mk->mk_refcount);\n"
  "+\t\t\tcrypt_info->ci_master_key = key_get(master_key);\n"
@@ -598,7 +600,7 @@
  "+\t\tup_read(&master_key->sem);\n"
  "+\t\tkey_put(master_key);\n"
  "+\t}\n"
- " \tif (res = -ENOKEY)\n"
+ " \tif (res == -ENOKEY)\n"
  " \t\tres = 0;\n"
  " \tput_crypt_info(crypt_info);\n"
  "@@ -376,3 +437,39 @@ void fscrypt_free_inode(struct inode *inode)\n"
@@ -707,6 +709,13 @@
  " /**********************************************************************/\n"
  " \n"
  "-- \n"
- 2.22.0
+ "2.22.0\n"
+ "\n"
+ "\n"
+ "\n"
+ "_______________________________________________\n"
+ "Linux-f2fs-devel mailing list\n"
+ "Linux-f2fs-devel@lists.sourceforge.net\n"
+ https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
 
-da3503693aa3253aa53152c6bf95f8f9e9519defdc03fca4a4e0ae7230d53f12
+cbe2fc503a70f2aa0a90d8fb6c3a8a1a90815e4cf1b79f5e815b72030ed3902f

diff --git a/a/1.txt b/N4/1.txt
index f4d4d75..1e2e024 100644
--- a/a/1.txt
+++ b/N4/1.txt
@@ -239,7 +239,7 @@ index bd489433bba04..ce33c38955233 100644
 +		err = add_existing_master_key(key->payload.data[0], secret,
 +					      mk_spec);
 +		up_write(&key->sem);
-+		if (err = KEY_DEAD) {
++		if (err == KEY_DEAD) {
 +			/* Key being removed or needs to be removed */
 +			key_invalidate(key);
 +			key_put(key);
@@ -313,14 +313,15 @@ index bd489433bba04..ce33c38955233 100644
 +	list_for_each(pos, &mk->mk_decrypted_inodes)
 +		busy_count++;
 +
-+	if (busy_count = 0) {
++	if (busy_count == 0) {
 +		spin_unlock(&mk->mk_decrypted_inodes_lock);
 +		return 0;
 +	}
 +
 +	{
 +		/* select an example file to show for debugging purposes */
-+		struct inode *inode +			list_first_entry(&mk->mk_decrypted_inodes,
++		struct inode *inode =
++			list_first_entry(&mk->mk_decrypted_inodes,
 +					 struct fscrypt_info,
 +					 ci_master_key_link)->ci_inode;
 +		ino = inode->i_ino;
@@ -562,10 +563,11 @@ index a457f5aefde5a..6b35c550e87a4 100644
  	if (res)
  		goto out;
  
--	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL)
-+	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL) {
+-	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL)
++	if (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL) {
 +		if (master_key) {
-+			struct fscrypt_master_key *mk +				master_key->payload.data[0];
++			struct fscrypt_master_key *mk =
++				master_key->payload.data[0];
 +
 +			refcount_inc(&mk->mk_refcount);
 +			crypt_info->ci_master_key = key_get(master_key);
@@ -582,7 +584,7 @@ index a457f5aefde5a..6b35c550e87a4 100644
 +		up_read(&master_key->sem);
 +		key_put(master_key);
 +	}
- 	if (res = -ENOKEY)
+ 	if (res == -ENOKEY)
  		res = 0;
  	put_crypt_info(crypt_info);
 @@ -376,3 +437,39 @@ void fscrypt_free_inode(struct inode *inode)
@@ -692,3 +694,8 @@ index 93d6eabaa7de4..cbe1ec46a4b56 100644
  
 -- 
 2.22.0
+
+
+______________________________________________________
+Linux MTD discussion mailing list
+http://lists.infradead.org/mailman/listinfo/linux-mtd/
diff --git a/a/content_digest b/N4/content_digest
index 0565f43..78a908c 100644
--- a/a/content_digest
+++ b/N4/content_digest
@@ -1,7 +1,7 @@
  "ref\020190726224141.14044-1-ebiggers@kernel.org\0"
  "From\0Eric Biggers <ebiggers@kernel.org>\0"
  "Subject\0[PATCH v7 07/16] fscrypt: add FS_IOC_REMOVE_ENCRYPTION_KEY ioctl\0"
- "Date\0Fri, 26 Jul 2019 22:41:32 +0000\0"
+ "Date\0Fri, 26 Jul 2019 15:41:32 -0700\0"
  "To\0linux-fscrypt@vger.kernel.org\0"
  "Cc\0Satya Tangirala <satyat@google.com>"
   linux-api@vger.kernel.org
@@ -255,7 +255,7 @@
  "+\t\terr = add_existing_master_key(key->payload.data[0], secret,\n"
  "+\t\t\t\t\t      mk_spec);\n"
  "+\t\tup_write(&key->sem);\n"
- "+\t\tif (err = KEY_DEAD) {\n"
+ "+\t\tif (err == KEY_DEAD) {\n"
  "+\t\t\t/* Key being removed or needs to be removed */\n"
  "+\t\t\tkey_invalidate(key);\n"
  "+\t\t\tkey_put(key);\n"
@@ -329,14 +329,15 @@
  "+\tlist_for_each(pos, &mk->mk_decrypted_inodes)\n"
  "+\t\tbusy_count++;\n"
  "+\n"
- "+\tif (busy_count = 0) {\n"
+ "+\tif (busy_count == 0) {\n"
  "+\t\tspin_unlock(&mk->mk_decrypted_inodes_lock);\n"
  "+\t\treturn 0;\n"
  "+\t}\n"
  "+\n"
  "+\t{\n"
  "+\t\t/* select an example file to show for debugging purposes */\n"
- "+\t\tstruct inode *inode +\t\t\tlist_first_entry(&mk->mk_decrypted_inodes,\n"
+ "+\t\tstruct inode *inode =\n"
+ "+\t\t\tlist_first_entry(&mk->mk_decrypted_inodes,\n"
  "+\t\t\t\t\t struct fscrypt_info,\n"
  "+\t\t\t\t\t ci_master_key_link)->ci_inode;\n"
  "+\t\tino = inode->i_ino;\n"
@@ -578,10 +579,11 @@
  " \tif (res)\n"
  " \t\tgoto out;\n"
  " \n"
- "-\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL)\n"
- "+\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) = NULL) {\n"
+ "-\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL)\n"
+ "+\tif (cmpxchg_release(&inode->i_crypt_info, NULL, crypt_info) == NULL) {\n"
  "+\t\tif (master_key) {\n"
- "+\t\t\tstruct fscrypt_master_key *mk +\t\t\t\tmaster_key->payload.data[0];\n"
+ "+\t\t\tstruct fscrypt_master_key *mk =\n"
+ "+\t\t\t\tmaster_key->payload.data[0];\n"
  "+\n"
  "+\t\t\trefcount_inc(&mk->mk_refcount);\n"
  "+\t\t\tcrypt_info->ci_master_key = key_get(master_key);\n"
@@ -598,7 +600,7 @@
  "+\t\tup_read(&master_key->sem);\n"
  "+\t\tkey_put(master_key);\n"
  "+\t}\n"
- " \tif (res = -ENOKEY)\n"
+ " \tif (res == -ENOKEY)\n"
  " \t\tres = 0;\n"
  " \tput_crypt_info(crypt_info);\n"
  "@@ -376,3 +437,39 @@ void fscrypt_free_inode(struct inode *inode)\n"
@@ -707,6 +709,11 @@
  " /**********************************************************************/\n"
  " \n"
  "-- \n"
- 2.22.0
+ "2.22.0\n"
+ "\n"
+ "\n"
+ "______________________________________________________\n"
+ "Linux MTD discussion mailing list\n"
+ http://lists.infradead.org/mailman/listinfo/linux-mtd/
 
-da3503693aa3253aa53152c6bf95f8f9e9519defdc03fca4a4e0ae7230d53f12
+fa4e30d046ecdc27538f85c67e5a5439ff99707f9ff1993ebe8017e58981317d

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.