From: Eric Paris Date: Mon, 29 Nov 2010 20:47:09 +0000 (-0500) Subject: selinux: convert type_val_to_struct to flex_array X-Git-Tag: v2.6.38-rc1~429^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23bdecb000c806cf4ec52764499a600f7200d7a9;p=pandora-kernel.git selinux: convert type_val_to_struct to flex_array In rawhide type_val_to_struct will allocate 26848 bytes, an order 3 allocations. While this hasn't been seen to fail it isn't outside the realm of possibiliy on systems with severe memory fragmentation. Convert to flex_array so no allocation will ever be bigger than PAGE_SIZE. Signed-off-by: Eric Paris --- Reading git-diff-tree failed