ath10k: prevent using invalid ringbuffer indexes
[cascardo/linux.git] / kernel / resource.c
index 77bf11a..3f285dc 100644 (file)
@@ -449,7 +449,6 @@ static int __find_resource(struct resource *root, struct resource *old,
        struct resource *this = root->child;
        struct resource tmp = *new, avail, alloc;
 
-       tmp.flags = new->flags;
        tmp.start = root->start;
        /*
         * Skip past an allocated resource that starts at 0, since the assignment