Changeset 348 for trunk/src


Ignore:
Timestamp:
Jun 11, 2011, 7:07:47 AM (13 years ago)
Author:
katerina
Message:

More fixes for ticket #254: Kernel check not working on Ubuntu 8.04 x86_64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_kern.c

    r321 r348  
    10991099{
    11001100  struct proc_dir_entry     proc_root_dir;
    1101   struct inode_operations * proc_root_inode_op = NULL;
     1101  int                       proc_root_inode_op_flag = 0;
    11021102
    11031103/* 2.6.21 (((2) << 16) + ((6) << 8) + (21)) */
     
    11201120  if (((unsigned long) * &proc_root_dir.proc_iops) == proc_root_iops)
    11211121    {
    1122       proc_root_inode_op = (struct inode_operations *) &(proc_root_dir.proc_iops);
     1122      proc_root_inode_op_flag = 1;
    11231123    }
    11241124  else if (proc_root_dir.size == proc_root_iops)
    11251125    {
    1126       proc_root_inode_op = (struct inode_operations *) &(proc_root_dir.size);
     1126      proc_root_inode_op_flag = 1;
    11271127    }
    11281128  else if ((unsigned long) * &proc_root_dir.proc_fops == proc_root_iops)
    11291129    {
    1130       proc_root_inode_op = (struct inode_operations *) &(proc_root_dir.proc_fops);
    1131     }
    1132 
    1133   if (!proc_root_inode_op)
     1130      proc_root_inode_op_flag = 1;
     1131    }
     1132
     1133  if (0 == proc_root_inode_op_flag)
    11341134    {
    11351135      sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_KERN_PROC,
Note: See TracChangeset for help on using the changeset viewer.