Re: [patch 2.6.27 mmotm] rtc-cmos: export second NVRAM bank

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Brownell
Date: Friday, September 12, 2008 - 12:13 pm

On Friday 12 September 2008, Andrew Morton wrote:

Think of it as:  "static const bool can_bank2 = true;" ...



I was chasing down a problem related to offsets.  Now fixed;
that bit could probably go away ... except that so long as the
interface allows negative/bogus values, it seems appropriate to
defend against them.  If the interface passed an unsigned type,
my paranoia-meter would not fire in this case.

 

In this case, size over 256 would be impossible.  A relevant
case study may be:

  http://thedailywtf.com/Articles/Rule-Number-One.aspx

:)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 2.6.27 mmotm] rtc-cmos: export second NVRAM bank, David Brownell, (Fri Sep 12, 9:57 am)
Re: [patch 2.6.27 mmotm] rtc-cmos: export second NVRAM bank, David Brownell, (Fri Sep 12, 12:13 pm)