|
@@ -494,7 +494,7 @@ static int cciss_open(struct inode *inode, struct file *filep)
|
|
* but I'm already using way to many device nodes to claim another one
|
|
* but I'm already using way to many device nodes to claim another one
|
|
* for "raw controller".
|
|
* for "raw controller".
|
|
*/
|
|
*/
|
|
- if (drv->nr_blocks == 0) {
|
|
|
|
|
|
+ if (drv->heads == 0) {
|
|
if (iminor(inode) != 0) { /* not node 0? */
|
|
if (iminor(inode) != 0) { /* not node 0? */
|
|
/* if not node 0 make sure it is a partition = 0 */
|
|
/* if not node 0 make sure it is a partition = 0 */
|
|
if (iminor(inode) & 0x0f) {
|
|
if (iminor(inode) & 0x0f) {
|