# Re: \[PATCH\] add palette register check

- From: Geert Uytterhoeven \<geert@linux-m68k.org\>
- Date: 2009-11-18 22:20:15 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2009/11/13460014
- Thread: https://ratatoskr.run/linux-fbdev/2009/10/13459964/t.md

```text
On Sat, Oct 24, 2009 at 16:18, Krzysztof Helt [ref] wrote:
> From: Krzysztof Helt <redacted>
>
> Add check if palette register number is in correct range
> for few drivers which miss it. The regno value comes
> indirectly from user space.
>
> Two drivers has converted check from BUG_ON() macro
> to just return an error (non-zero value).
>
> Signed-off-by: Krzysztof Helt <redacted>
>
> ---
>
> diff --git a/drivers/video/atafb.c b/drivers/video/atafb.c
> index 8cd279b..2682938 100644
> --- a/drivers/video/atafb.c
> +++ b/drivers/video/atafb.c

Thanks, I'll take the atafb part through the m68k tree.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
```
