Re: [RFC] Atmel-supplied hardware headers for AT91RM9200 SoC processor

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

 



hi Alexey,

Thanks for the constructive comments.


> And check for non-NULL data in at91_add_device_usbh() is useless:

There are many more custom AT91RM9200-based boards.  That NULL check is
really just there to help the developers when they write their own
board-XX.c file.


> at91_wdt_ioctl() isn't __user annotated. Let alone it is ioctl.

All the other watchdog drivers use ioctl?  That is how it's described in
Documentation/watchdog/watchdog-api.txt.


> > +       char* command = kmalloc(2, GFP_KERNEL);
> 
> Anyone remembers 1 kmallocated byte?

That command buffer is passed down to the SPI driver, which then DMA's
directly from/to it.  We can't DMA to an address on the stack (atleast
not in 2.4 when that driver was written).


Regards,
  Andrew Victor


-
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