IB/ipath: Only allow complete writes to flash
authorBryan O'Sullivan <bos@pathscale.com>
Thu, 28 Sep 2006 16:00:05 +0000 (09:00 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 28 Sep 2006 18:16:37 +0000 (11:16 -0700)
commit7dae5bff2e8e4699744e782a6e7605ad18d1240e
treedc771fe6e05c45eeabc66812f7706345042dbb87
parentf3e93c7757043cd5d5c4879b8b92effcc7817c81
IB/ipath: Only allow complete writes to flash

Don't allow a write to the eeprom from ipathfs unless the write is exactly
128 bytes and starts at offset 0.

Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_fs.c