소스 검색

switch: warn if ndo_do_ioctl is not implemented in the Ethernet driver

SVN-Revision: 33506
Hauke Mehrtens 13 년 전
부모
커밋
da94d4ac29
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      package/switch/src/switch-robo.c

+ 4 - 0
package/switch/src/switch-robo.c

@@ -269,6 +269,10 @@ static int robo_probe(char *devname)
 		printk("No such device\n");
 		return 1;
 	}
+	if (!robo.dev->netdev_ops || !robo.dev->netdev_ops->ndo_do_ioctl) {
+		printk("ndo_do_ioctl not implemented in ethernet driver\n");
+		return 1;
+	}
 
 	robo.device = devname;
 	for (i = 0; i < 5; i++)