ibmasmfs.c (278d72ae8803ffcd16070c95fe1d53f4466dc741) | ibmasmfs.c (8818760512424f60ad9fafb7a087b007a9274eb3) |
---|---|
1/* 2 * IBM ASM Service Processor Device Driver 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * --- 307 unchanged lines hidden (view full) --- 316 return 0; 317 if (*offset != 0) 318 return 0; 319 320 /* commands are executed sequentially, only one command at a time */ 321 if (command_data->command) 322 return -EAGAIN; 323 | 1/* 2 * IBM ASM Service Processor Device Driver 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * --- 307 unchanged lines hidden (view full) --- 316 return 0; 317 if (*offset != 0) 318 return 0; 319 320 /* commands are executed sequentially, only one command at a time */ 321 if (command_data->command) 322 return -EAGAIN; 323 |
324 cmd = ibmasm_new_command(count); | 324 cmd = ibmasm_new_command(command_data->sp, count); |
325 if (!cmd) 326 return -ENOMEM; 327 328 if (copy_from_user(cmd->buffer, ubuff, count)) { 329 command_put(cmd); 330 return -EFAULT; 331 } 332 --- 306 unchanged lines hidden --- | 325 if (!cmd) 326 return -ENOMEM; 327 328 if (copy_from_user(cmd->buffer, ubuff, count)) { 329 command_put(cmd); 330 return -EFAULT; 331 } 332 --- 306 unchanged lines hidden --- |