Re: [-mm patch] Avoid divide by zero errors in sched.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 12 Aug 2005 23:10, Dave Kleikamp wrote:
> This patch fixes a divide-by-zero error that I hit on a two-way i386
> machine.  rq->nr_running is tested to be non-zero, but may change by the
> time it is used in the division.  Saving the value to a local variable
> ensures that the same value that is checked is used in the division.
>
> Signed-off-by: Dave Kleikamp <[email protected]>

Acked-by: Con Kolivas <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux