aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dma-debug.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2009-08-03 00:59:56 +0000
committerNeilBrown <[email protected]>2009-08-03 00:59:56 +0000
commit3673f305faf1bc66ead751344f8262ace851ff44 (patch)
tree4cbdd23d9af20632678e95b3e8f02ede241a3917 /lib/dma-debug.c
parentmd: when a level change reduces the number of devices, remove the excess. (diff)
downloadkernel-3673f305faf1bc66ead751344f8262ace851ff44.tar.gz
kernel-3673f305faf1bc66ead751344f8262ace851ff44.zip
md: avoid array overflow with bad v1.x metadata
We trust the 'desc_nr' field in v1.x metadata enough to use it as an index in an array. This isn't really safe. So range-check the value first. Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions