OSDN Git Service

drbd: fix NULL pointer dereference on 4k hard sect size
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 26 Feb 2010 15:53:24 +0000 (16:53 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 11 Mar 2010 14:58:25 +0000 (15:58 +0100)
commit4aa83b7bf122106669346eef40632289f540653f
tree677f5e630c645c41eade94d90623e93672e08564
parentcf14c2e987ba0a09a7b09be2ecd55af0bc9c17b4
drbd: fix NULL pointer dereference on 4k hard sect size

we still don't support 4k 'physical' sectors 'natively',
but use a read-modify-write workaround.
And we even tried to use the extra page before we allocated it :(

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_nl.c