Thread (5 messages) 5 messages, 3 authors, 2007-05-09

Re: [patch 2/9] lguest: the guest code

From: Rusty Russell <hidden>
Date: 2007-05-09 12:00:00
Also in: lkml

On Wed, 2007-05-09 at 13:16 +0300, Pekka Enberg wrote:
Hi Rusty,

On 5/9/07, akpm@linux-foundation.org [off-list ref] wrote:
quoted
+static void add_lguest_device(unsigned int index)
+{
+       struct lguest_device *new;
+
+       lguest_devices[index].status |= LGUEST_DEVICE_S_ACKNOWLEDGE;
+       new = kmalloc(sizeof(struct lguest_device), GFP_KERNEL);
+       if (!new) {
+               printk(KERN_EMERG "Cannot allocate lguest device %u\n", index);
+               lguest_devices[index].status |= LGUEST_DEVICE_S_FAILED;
[snip]

Any reason why we don't return an error here?
Hi Pekka,

	Hmm, where would the error go?

A little confused,
Rusty.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help