Skip to content

Commit 8e88c03

Browse files
committed
tgupdate: merge t/upstream base into t/upstream
2 parents 1013ff0 + bb7f56b commit 8e88c03

File tree

9 files changed

+19
-16
lines changed

9 files changed

+19
-16
lines changed

drivers/net/ethernet/mellanox/mlx4/en_netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,9 +1180,9 @@ static void mlx4_en_do_uc_filter(struct mlx4_en_priv *priv,
11801180
mlx4_unregister_mac(mdev->dev, priv->port, mac);
11811181

11821182
hlist_del_rcu(&entry->hlist);
1183-
kfree_rcu(entry, rcu);
11841183
en_dbg(DRV, priv, "Removed MAC %pM on port:%d\n",
11851184
entry->mac, priv->port);
1185+
kfree_rcu(entry, rcu);
11861186
++removed;
11871187
}
11881188
}

drivers/net/usb/lan78xx.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,10 +1080,13 @@ static int lan78xx_read_raw_eeprom(struct lan78xx_net *dev, u32 offset,
10801080
}
10811081

10821082
read_raw_eeprom_done:
1083-
if (dev->chipid == ID_REV_CHIP_ID_7800_)
1084-
return lan78xx_write_reg(dev, HW_CFG, saved);
1085-
1086-
return 0;
1083+
if (dev->chipid == ID_REV_CHIP_ID_7800_) {
1084+
int rc = lan78xx_write_reg(dev, HW_CFG, saved);
1085+
/* If USB fails, there is nothing to do */
1086+
if (rc < 0)
1087+
return rc;
1088+
}
1089+
return ret;
10871090
}
10881091

10891092
static int lan78xx_read_eeprom(struct lan78xx_net *dev, u32 offset,

include/linux/phy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static inline const char *phy_modes(phy_interface_t interface)
297297
*
298298
* Description: maps RGMII supported link speeds into the clock rates.
299299
* This can also be used for MII, GMII, and RMII interface modes as the
300-
* clock rates are indentical, but the caller must be aware that errors
300+
* clock rates are identical, but the caller must be aware that errors
301301
* for unsupported clock rates will not be signalled.
302302
*
303303
* Returns: clock rate or negative errno
@@ -519,7 +519,7 @@ enum phy_state {
519519
* struct phy_c45_device_ids - 802.3-c45 Device Identifiers
520520
* @devices_in_package: IEEE 802.3 devices in package register value.
521521
* @mmds_present: bit vector of MMDs present.
522-
* @device_ids: The device identifer for each present device.
522+
* @device_ids: The device identifier for each present device.
523523
*/
524524
struct phy_c45_device_ids {
525525
u32 devices_in_package;

include/net/psp/functions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ unsigned int psp_key_size(u32 version);
3434
void psp_sk_assoc_free(struct sock *sk);
3535
void psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk);
3636
void psp_twsk_assoc_free(struct inet_timewait_sock *tw);
37-
void psp_reply_set_decrypted(struct sk_buff *skb);
37+
void psp_reply_set_decrypted(const struct sock *sk, struct sk_buff *skb);
3838

3939
static inline struct psp_assoc *psp_sk_assoc(const struct sock *sk)
4040
{
@@ -160,7 +160,7 @@ static inline void
160160
psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk) { }
161161
static inline void psp_twsk_assoc_free(struct inet_timewait_sock *tw) { }
162162
static inline void
163-
psp_reply_set_decrypted(struct sk_buff *skb) { }
163+
psp_reply_set_decrypted(const struct sock *sk, struct sk_buff *skb) { }
164164

165165
static inline struct psp_assoc *psp_sk_assoc(const struct sock *sk)
166166
{

net/ipv4/ip_output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ void ip_send_unicast_reply(struct sock *sk, const struct sock *orig_sk,
16681668
nskb->ip_summed = CHECKSUM_NONE;
16691669
if (orig_sk) {
16701670
skb_set_owner_edemux(nskb, (struct sock *)orig_sk);
1671-
psp_reply_set_decrypted(nskb);
1671+
psp_reply_set_decrypted(orig_sk, nskb);
16721672
}
16731673
if (transmit_time)
16741674
nskb->tstamp_type = SKB_CLOCK_MONOTONIC;

net/ipv6/tcp_ipv6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ static void tcp_v6_send_response(const struct sock *sk, struct sk_buff *skb, u32
974974
if (sk) {
975975
/* unconstify the socket only to attach it to buff with care. */
976976
skb_set_owner_edemux(buff, (struct sock *)sk);
977-
psp_reply_set_decrypted(buff);
977+
psp_reply_set_decrypted(sk, buff);
978978

979979
if (sk->sk_state == TCP_TIME_WAIT)
980980
mark = inet_twsk(sk)->tw_mark;

net/psp/psp_sock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,12 @@ void psp_twsk_assoc_free(struct inet_timewait_sock *tw)
279279
psp_assoc_put(pas);
280280
}
281281

282-
void psp_reply_set_decrypted(struct sk_buff *skb)
282+
void psp_reply_set_decrypted(const struct sock *sk, struct sk_buff *skb)
283283
{
284284
struct psp_assoc *pas;
285285

286286
rcu_read_lock();
287-
pas = psp_sk_get_assoc_rcu(skb->sk);
287+
pas = psp_sk_get_assoc_rcu(sk);
288288
if (pas && pas->tx.spi)
289289
skb->decrypted = 1;
290290
rcu_read_unlock();

net/tipc/crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ int tipc_crypto_xmit(struct net *net, struct sk_buff **skb,
17971797
* @b: bearer where the message has been received
17981798
*
17991799
* If the decryption is successful, the decrypted skb is returned directly or
1800-
* as the callback, the encryption header and auth tag will be trimed out
1800+
* as the callback, the encryption header and auth tag will be trimmed out
18011801
* before forwarding to tipc_rcv() via the tipc_crypto_rcv_complete().
18021802
* Otherwise, the skb will be freed!
18031803
* Note: RX key(s) can be re-aligned, or in case of no key suitable, TX

net/tipc/topsrv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* @conn_idr: identifier set of connection
5858
* @idr_lock: protect the connection identifier set
5959
* @idr_in_use: amount of allocated identifier entry
60-
* @net: network namspace instance
60+
* @net: network namespace instance
6161
* @awork: accept work item
6262
* @rcv_wq: receive workqueue
6363
* @send_wq: send workqueue
@@ -83,7 +83,7 @@ struct tipc_topsrv {
8383
* @sock: socket handler associated with connection
8484
* @flags: indicates connection state
8585
* @server: pointer to connected server
86-
* @sub_list: lsit to all pertaing subscriptions
86+
* @sub_list: list to all pertaining subscriptions
8787
* @sub_lock: lock protecting the subscription list
8888
* @rwork: receive work item
8989
* @outqueue: pointer to first outbound message in queue

0 commit comments

Comments
 (0)