Re: console stuck

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

 



Hello.

Ashlesha Shintre wrote:
Hi,

I m very much confused as to why there is an infinite loop in the
__request_resource function in the linux/kernel/resource.c file?

   It has 2 exit points (return statements).

The serial console is getting stuck at this point.

   Then there's something very wrong with your resources...

for (;;) {
               tmp = *p;
               if (!tmp || tmp->start > end) {
                       new->sibling = tmp;
                       *p = new;
                       new->parent = root;
                       return NULL;
               }
               p = &tmp->sibling;
               if (tmp->end < start){
                       printk("tmp->end = %d\n",tmp->end);
                       printk("tmp->start = %d\n",tmp->start);
                       printk("*********!!!!!!!*******sibling?!!\n");
                       continue;
               }
               return tmp;


Thanks and Regards,
Ashlesha.

WBR, Sergei


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux