1
0
Fork 0
forked from len0rd/rockbox

Added extra safety checks.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2839 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-11-12 20:02:23 +00:00
parent 5a7548afba
commit 099a6b58d1
2 changed files with 7 additions and 1 deletions

View file

@ -292,6 +292,9 @@ int ata_write_sectors(unsigned long start,
last_disk_activity = current_tick;
if (start == 0)
panicf("Writing on sector 0\n");
mutex_lock(&ata_mtx);
if ( sleeping ) {