diff options
| author | Mark Lord <[email protected]> | 2009-03-19 17:32:21 +0000 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2009-03-25 02:40:05 +0000 |
| commit | e18086d69cb5bb864749a0637f6ac573aa89d5ea (patch) | |
| tree | 2d3e541787eb30743693dd45c96ebabb9be0f0a6 /security/selinux/hooks.c | |
| parent | sata_mv: fix LED blinking for SoC+NCQ (diff) | |
| download | kernel-e18086d69cb5bb864749a0637f6ac573aa89d5ea.tar.gz kernel-e18086d69cb5bb864749a0637f6ac573aa89d5ea.zip | |
[libata] More robust parsing for IDENTIFY DEVICE multi_count field
Make libata more robust when parsing the multi_count
field from a drive's identify data. This prevents us from
attempting to use dubious multi_count values ad infinitum.
Reset dev->multi_count to zero and reprobe it each time
through this routine, as it can change on device reset.
Also ensure that the reported "maximum" value is valid
and is a power of two, and that the reported "count" value
is valid and also a power of two. And that the "count"
value is not greater than the "maximum" value.
Signed-off-by: Mark Lord <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
