Re: [PATCH] xen: detect uninitialized xenbus in xenbus_init

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

 




On 11/18/21 4:00 PM, Stefano Stabellini wrote:

         /*
          * Avoid truncation on 32-bit.
          * TODO: handle addresses >= 4G
          */
         if ( v >= ~0UL ) {
             err = -EINVAL;
             goto out_error;
         }


Since this is only relevant to 32-bit kernels then "#if BITS_PER_LONG == 32".


-boris




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux