aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dma-debug.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2009-08-03 00:59:57 +0000
committerNeilBrown <[email protected]>2009-08-03 00:59:57 +0000
commit70471dafe3390243c598a3165dfb86b8b8b3f4fe (patch)
treefebb8dfdbbb981370e1ea046714628bf6b790e5a /lib/dma-debug.c
parentmd: avoid array overflow with bad v1.x metadata (diff)
downloadkernel-70471dafe3390243c598a3165dfb86b8b8b3f4fe.tar.gz
kernel-70471dafe3390243c598a3165dfb86b8b8b3f4fe.zip
md: Handle growth of v1.x metadata correctly.
The v1.x metadata does not have a fixed size and can grow when devices are added. If it grows enough to require an extra sector of storage, we need to update the 'sb_size' to match. Without this, md can write out an incomplete superblock with a bad checksum, which will be rejected when trying to re-assemble the array. Cc: [email protected] Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions