[PATCH] 3.13: Fix compilation with CONFIG_BIG_KEYS=y

Arfrever Frehtes Taifersar Arahesis <[email protected]> Fri, 14 Feb 2014 09:24:10 +0100
Newsgroups gmane.linux.swsusp.devel
Message-ID <[email protected]>
Last TuxOnIce patch for 3.13 branch (tuxonice-for-linux-3.13.2-2014-02-13.patch) (and some
earlier versions) modifies signature of shmem_kernel_file_setup() function (declared in
include/linux/shmem_fs.h and defined in mm/shmem.c), but fails to modify call to this function
in security/keys/big_key.c, resulting in compilation failure with CONFIG_BIG_KEYS=y.

Please apply the attached patch in tuxonice-3.13 branch.

--
Arfrever Frehtes Taifersar Arahesis

_______________________________________________
TuxOnIce-devel mailing list
[email protected]
http://lists.tuxonice.net/listinfo/tuxonice-devel
tuxonice-shmem_kernel_file_setup.patch (text/x-patch, 318 B)
--- security/keys/big_key.c
+++ security/keys/big_key.c
@@ -70,7 +70,7 @@
 		 *
 		 * TODO: Encrypt the stored data with a temporary key.
 		 */
-		file = shmem_kernel_file_setup("", datalen, 0);
+		file = shmem_kernel_file_setup("", datalen, 0, 0);
 		if (IS_ERR(file)) {
 			ret = PTR_ERR(file);
 			goto err_quota;
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAABCgAGBQJS/dKrAAoJEO3sXuhCyn4c3JEP+QGx4SfOeGqJIllRBjIJLyw/
j7F1NVGv8DGY8GJW5Sido8eZjGwXYtGSRrrzxC1sYzJaaDRRnowVT/a+M/8dZPCc
rp4YP3mBbZ4rm4TVaq7ceBODmB8vDEXFj3cJ2lfGLs9JX2+Aw4PT2KlC4OoJh+IN
W8+Z/viTuc2oy8g7GipDSPY2aQIX6AQMrib3TZt56WsQDUlqStTT9X7HV6GsDF7m
dxZslIlvzS46jPYXCM4R/I8CGUB03fmvtiAqxzwnU7aI45M95G4MWkYJ9NJM9QC4
JQiIF0EhefoCRWCpCfuOkIeVU+H9Rfk0+BMTrqskJy5FiFJ5UGgPIKKJzr3NfM9O
YXTG6FTl6C1NgOQyNR23PyZl0rlr/KUHU6dEdnqmOMeqch2RBYVYHUbHJ1j7KDGP
IirvxnpL1/wqJ+EFFhPyCjCHF8NXBGvAD05zOlihdt4DeF2B0quEcMi06DCGM0gB
hVZEuNa8rU2DTvwnS5+YzzVynhiJI5hxLVDGSwGL1ovUy6wHXienqJ9TObR27R1q
DcXi3YjhsFyRxr/E92vpV+78mRo1vRHruPTihgxbJAS3rU9grXgWU3dvgeAB5xHg
5Sry4vU86JQLVi11XOxycpdNnCizCECrmn2jWbPkV7OrhVLLUSXIdcwDO3fRjHEO
HjOtXf84mNGtwfHWyPUX
=H029
-----END PGP SIGNATURE-----