I\'m reading this book, and I found this code snippet in Chapter 14.
struct kobject *cdev_get(struct cdev *p) { struct module *owner = p->owner; s
You have the order of operations wrong:
&p->kobj // &(p->kobj)