Re: [PATCH] ALPHA: TITAN - check for allocated memory

Cyrill Gorcunov
2007-05-17T14:40:56Z

[Al Viro - Wed, May 16, 2007 at 08:41:01PM +0100]
| On Wed, May 16, 2007 at 10:13:32PM +0400, Cyrill Gorcunov wrote:
| > This patch adds checking for allocated memory
| > which is used to hold AGP info. Also some whitespace
| > cleanup.
|
| Could you please not do that again? Whitespace cleanup is nice as a separate
| followup, but as it is it just obscures the real changes in patch. Digging
| out
|
| > @@ -767,6 +767,11 @@ titan_agp_info(void)
| > * Allocate the info structure.
| > */
| > agp = kmalloc(sizeof(*agp), GFP_KERNEL);
| > + if (agp == NULL) {
| > + printk(KERN_ERR "TITAN - cannot allocate struct of size %d bytes\n",
| > + sizeof(*agp));
| > + return NULL;
| > + }
|
| out of hundreds of lines in patch just makes review harder. Incidentally,
| %d is not size_t, it's int. Use %zu, please.
|

I really sorry about this. Thanks for note.

Cyrill