summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_isapnp.c
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-06-07 01:15:24 +0200
committerMark Fasheh <mark.fasheh@oracle.com>2007-06-07 01:42:03 +0200
commiteeb47d1234af1a9267836f680a8e114b2e88d0dc (patch)
tree8362fcf841f204876446c952dca530cdb419899d /drivers/ata/pata_isapnp.c
parentocfs2: Fix masklog breakage (diff)
downloadlinux-eeb47d1234af1a9267836f680a8e114b2e88d0dc.tar.xz
linux-eeb47d1234af1a9267836f680a8e114b2e88d0dc.zip
ocfs2: Fix invalid assertion during write on 64k pages
The write path code intends to bug if a math error (or unhandled case) results in a write outside of the current cluster boundaries. The actual BUG_ON() statements however are incorrect, leading to a crash on kernels with 64k page size. Fix those by checking against the right variables. Also, move the assertions higher up within the functions so that they trip *before* the code starts to mark buffers. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'drivers/ata/pata_isapnp.c')
0 files changed, 0 insertions, 0 deletions