Driver allocating memory over pci slot size

Are the working and non-working kernels compiled using the same gcc version?