The following issues were found

drivers/comedi/drivers/ni_routing/ni_device_routes/pxi-6030e.c
1 issues
Syntax Error: AST broken, binary operator '=' doesn't have two operands.
Error

Line: 32

              
struct ni_device_routes ni_pxi_6030e_device_routes = {
	.device = "pxi-6030e",
	.routes = (struct ni_route_set[]){
		{
			.dest = NI_PFI(0),
			.src = (int[]){
				NI_AI_StartTrigger,
				0, /* Termination */

            

Reported by Cppcheck.

drivers/comedi/drivers/ni_routing/ni_device_routes/pxi-6224.c
1 issues
Syntax Error: AST broken, binary operator '=' doesn't have two operands.
Error

Line: 32

              
struct ni_device_routes ni_pxi_6224_device_routes = {
	.device = "pxi-6224",
	.routes = (struct ni_route_set[]){
		{
			.dest = NI_PFI(0),
			.src = (int[]){
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),

            

Reported by Cppcheck.

drivers/comedi/drivers/ni_routing/ni_device_routes/pxi-6225.c
1 issues
Syntax Error: AST broken, binary operator '=' doesn't have two operands.
Error

Line: 32

              
struct ni_device_routes ni_pxi_6225_device_routes = {
	.device = "pxi-6225",
	.routes = (struct ni_route_set[]){
		{
			.dest = NI_PFI(0),
			.src = (int[]){
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),

            

Reported by Cppcheck.

drivers/comedi/drivers/ni_routing/ni_device_routes/pxi-6251.c
1 issues
Syntax Error: AST broken, binary operator '=' doesn't have two operands.
Error

Line: 32

              
struct ni_device_routes ni_pxi_6251_device_routes = {
	.device = "pxi-6251",
	.routes = (struct ni_route_set[]){
		{
			.dest = NI_PFI(0),
			.src = (int[]){
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),

            

Reported by Cppcheck.

drivers/comedi/drivers/ni_routing/ni_device_routes/pxi-6733.c
1 issues
Syntax Error: AST broken, binary operator '=' doesn't have two operands.
Error

Line: 32

              
struct ni_device_routes ni_pxi_6733_device_routes = {
	.device = "pxi-6733",
	.routes = (struct ni_route_set[]){
		{
			.dest = NI_PFI(3),
			.src = (int[]){
				NI_CtrSource(1),
				0, /* Termination */

            

Reported by Cppcheck.

drivers/comedi/drivers/ni_routing/ni_device_routes/pxie-6251.c
1 issues
Syntax Error: AST broken, binary operator '=' doesn't have two operands.
Error

Line: 32

              
struct ni_device_routes ni_pxie_6251_device_routes = {
	.device = "pxie-6251",
	.routes = (struct ni_route_set[]){
		{
			.dest = NI_PFI(0),
			.src = (int[]){
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),

            

Reported by Cppcheck.

drivers/comedi/drivers/ni_routing/ni_device_routes/pxie-6535.c
1 issues
Syntax Error: AST broken, binary operator '=' doesn't have two operands.
Error

Line: 32

              
struct ni_device_routes ni_pxie_6535_device_routes = {
	.device = "pxie-6535",
	.routes = (struct ni_route_set[]){
		{
			.dest = NI_PFI(0),
			.src = (int[]){
				NI_PFI(1),
				NI_PFI(2),

            

Reported by Cppcheck.

drivers/comedi/drivers/ni_routing/ni_device_routes/pxie-6738.c
1 issues
Syntax Error: AST broken, binary operator '=' doesn't have two operands.
Error

Line: 32

              
struct ni_device_routes ni_pxie_6738_device_routes = {
	.device = "pxie-6738",
	.routes = (struct ni_route_set[]){
		{
			.dest = NI_PFI(0),
			.src = (int[]){
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),

            

Reported by Cppcheck.

drivers/comedi/drivers/ni_routing/tools/convert_c_to_py.c
1 issues
fopen - Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents?
Security

Line: 141 Column: 13 CWE codes: 362

              
int main(void)
{
	FILE *fp = fopen("ni_values.py", "w");

	/* write route register values */
	fprintf(fp, "ni_route_values = {\n");
	for (int i = 0; ni_all_route_values[i]; ++i)
		family_write(ni_all_route_values[i], fp);

            

Reported by FlawFinder.

drivers/ata/pata_ep93xx.c
1 issues
char - Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues
Security

Line: 499 Column: 12 CWE codes: 119 120
Suggestion: Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length

              
	/* Transfer trailing 1 byte, if any. */
	if (unlikely(buflen & 0x01)) {
		unsigned char pad[2] = { };

		buf += buflen - 1;

		if (rw == READ) {
			*pad = cpu_to_le16(

            

Reported by FlawFinder.