Android 5.1.1 release 2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlVRCHkACgkQ6K0/gZqxDnifOgCdF3phGc+h98GXFUD/GOKOTuFV
sQYAniMnNH8HRJTXH14yUzZBmletvZMM
=w915
-----END PGP SIGNATURE-----
Fix bugs in jmem-ashmem.

If ashmem_set_prot_region fails, close the previously opened file.

If mmap fails, close the file and return -1.

BUG:18894965
Change-Id: I936b5c7395480249b1457e7dee566da6141fb023
(cherry picked from commit 3773c6ec2bcf603cfa2b16575022642b3e816297)
1 file changed
tree: 871243893f826dc738275275559e8aab4b3f6d6c
  1. Android.mk
  2. CleanSpec.mk
  3. MODULE_LICENSE_BSD_LIKE
  4. NOTICE
  5. README
  6. ansi2knr.1
  7. ansi2knr.c
  8. armv6_idct.S
  9. cderror.h
  10. cdjpeg.c
  11. cdjpeg.h
  12. change.log
  13. cjpeg.1
  14. cjpeg.c
  15. ckconfig.c
  16. coderules.doc
  17. config.guess
  18. config.sub
  19. configure
  20. djpeg.1
  21. djpeg.c
  22. example.c
  23. filelist.doc
  24. install-sh
  25. install.doc
  26. jcapimin.c
  27. jcapistd.c
  28. jccoefct.c
  29. jccolor.c
  30. jcdctmgr.c
  31. jchuff.c
  32. jchuff.h
  33. jcinit.c
  34. jcmainct.c
  35. jcmarker.c
  36. jcmaster.c
  37. jcomapi.c
  38. jconfig.bcc
  39. jconfig.cfg
  40. jconfig.dj
  41. jconfig.doc
  42. jconfig.h
  43. jconfig.mac
  44. jconfig.manx
  45. jconfig.mc6
  46. jconfig.sas
  47. jconfig.st
  48. jconfig.vc
  49. jconfig.vms
  50. jconfig.wat
  51. jcparam.c
  52. jcphuff.c
  53. jcprepct.c
  54. jcsample.c
  55. jctrans.c
  56. jdapimin.c
  57. jdapistd.c
  58. jdatadst.c
  59. jdatasrc.c
  60. jdcoefct.c
  61. jdcolor.c
  62. jdct.h
  63. jddctmgr.c
  64. jdhuff.c
  65. jdhuff.h
  66. jdinput.c
  67. jdmainct.c
  68. jdmarker.c
  69. jdmaster.c
  70. jdmerge.c
  71. jdphuff.c
  72. jdpostct.c
  73. jdsample.c
  74. jdtrans.c
  75. jerror.c
  76. jerror.h
  77. jfdctflt.c
  78. jfdctfst.c
  79. jfdctint.c
  80. jidctflt.c
  81. jidctfst.c
  82. jidctint.c
  83. jidctintelsse.c
  84. jidctred.c
  85. jinclude.h
  86. jmem-android.c
  87. jmem-ashmem.c
  88. jmemansi.c
  89. jmemdos.c
  90. jmemdosa.asm
  91. jmemmac.c
  92. jmemmgr.c
  93. jmemname.c
  94. jmemnobs.c
  95. jmemsys.h
  96. jmorecfg.h
  97. jpegint.h
  98. jpeglib.h
  99. jpegtran.1
  100. jpegtran.c
  101. jquant1.c
  102. jquant2.c
  103. jsimd_arm_neon.S
  104. jsimd_neon.c
  105. jsimd_neon.h
  106. jutils.c
  107. jversion.h
  108. libjpeg.doc
  109. ltconfig
  110. ltmain.sh
  111. makcjpeg.st
  112. makdjpeg.st
  113. makeapps.ds
  114. makefile.ansi
  115. makefile.bcc
  116. makefile.cfg
  117. makefile.dj
  118. makefile.manx
  119. makefile.mc6
  120. makefile.mms
  121. makefile.sas
  122. makefile.unix
  123. makefile.vc
  124. makefile.vms
  125. makefile.wat
  126. makelib.ds
  127. makeproj.mac
  128. makljpeg.st
  129. maktjpeg.st
  130. makvms.opt
  131. mips_idct_le.S
  132. mips_jidctfst.c
  133. rdbmp.c
  134. rdcolmap.c
  135. rdgif.c
  136. rdjpgcom.1
  137. rdjpgcom.c
  138. rdppm.c
  139. rdrle.c
  140. rdswitch.c
  141. rdtarga.c
  142. structure.doc
  143. testimg.bmp
  144. testimg.jpg
  145. testimg.ppm
  146. testimgp.jpg
  147. testorig.jpg
  148. testprog.jpg
  149. transupp.c
  150. transupp.h
  151. usage.doc
  152. wizard.doc
  153. wrbmp.c
  154. wrgif.c
  155. wrjpgcom.1
  156. wrjpgcom.c
  157. wrppm.c
  158. wrrle.c
  159. wrtarga.c