[PATCH 4.19 210/276] chardev: add additional check for minor range overlap