Re: [PATCH] SH/Dreamcast - add support for GD-Rom CDROM drive on SEGA Dreamcast

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Adrian McMenamin <adrian@...>, Jens Axboe <jens.axboe@...>, Paul Mundt <lethal@...>, linux-sh <linux-sh@...>, LKML <linux-kernel@...>
Date: Sunday, January 13, 2008 - 2:24 pm

On 12/01/2008, Andrew Morton <akpm@linux-foundation.org> wrote:

OK, at the risk of looking like a fool:

Yes, it does treat this as only one device per box as that's the way
the things are made.

The hardware will stop you from running two commands in parallel - the
device will be flagged as busy and so you won't be able to get it do
anything sensible. I have now added in some additional checks so that
a user cannot start another command before the old one finishes - but
I still don't see what the problem is with freeing the memory.

The variable is a local, and an automatic, not a global or a static,
so I don't see how kfree() could be releasing somebody else's lump of
memory anyway. Or have I missed something obvious?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] SH/Dreamcast - add support for GD-Rom CDROM driv..., Adrian McMenamin, (Sat Jan 12, 10:14 am)
Re: [PATCH] SH/Dreamcast - add support for GD-Rom CDROM driv..., Adrian McMenamin, (Sun Jan 13, 2:24 pm)